A simple, real-time chat application built using Flask and Socket.IO. PyChat gives users random usernames and avatars, creating a fun and engaging chat experience.
- π Real-time messaging using Flask-SocketIO
- πΌοΈ Random avatars and usernames for each user
- π Broadcast system for chat join/leave notifications
- ποΈ Option to update your username on the go
- π¨ Clean and responsive user interface
- Clone the repo:
git clone https://github.com/mhdZhHan/pychat-app.git
- Navigate to the project directory:
cd pychat-app
- Install dependencies:
pip install -r requirements.txt
- Run the Flask app:
flask run
- Open your browser and go to:
http://localhost:5000
Start chatting! π
- connect: Triggers when a user joins the chat. The user gets a random username and avatar.
- send_message: Broadcasts a new message to all users.
- update_username: Allows users to change their username.
- disconnect: Handles user leaving the chat.
Feel free to submit issues or fork the repository and create pull requests.