Python Socket Chat
Simple python chat app using Flask & Socket.IO
Demo
Too see the demo, you can visit here
Features
- Light/dark mode toggle
- Public chat
- Persistant account
- Delete account
- Update account
- Auto change author message when account Update
- Notify status to all user (User updated, user is online, user if offline, deleted user account, joined new user)
- Single Page Application (SPA)? SURE!
- Delete message(s)
- Create multi room
- Chat with personal account
- Send message with image(s)
- Send file
- Reply message
- Message link preview
Requirements
- Python. Recommended version is
3.8
. You can install multi python version using pyenv.
Installation
Install Python Socket Chat :
- clone this repository
git clone https://github.com/IhsanDevs/PythonSocketChat
cd PythonSocketChat
- Install all PIP dependencies
pip install -r requirements.txt
- Finally, run the app!
python app.py
Deployment
For now, i'm just testing it in my local computer. I have test to deploy and run in Repl.it and pytonanywhere but this project doesn't work. Because they're doesn't support websocket server.
On Heroku? My mind that doesn't work too. because Heroku doesn't support persistant storage. This project use SQLite for manage data like chat histories and users data.
Maybe you can deploy this project with your own VPS server. Just run the project in background service using PM2 and reverse the port using NGINX to your domain.
Contributing
Contributions are always welcome!