git clone https://github.com/alirezahs1/simple-chatroom
pip install -R requirements.txt
Create a mysql database and import chatroom.sql file. then, change file /db.py:
DB_HOST = 'localhost'
DB_NAME = *YOUR_DATABASE_NAME*
DB_USERNAME = *YOUR_DATABASE_USERNAME*
DB_PASSWORD = *YOUR_DATABASE_PASSWORD*
python server.py
you can change the port from end of /server.py file: