This is a simple chat application built using Flask and SocketIO.
- Python 3.x
- Flask
- Flask-SocketIO
- Flask-MySQLdb
- MySQL
- Clone the repository:
git clone https://github.com/rajshah5599/one-to-many-chat-python-websocket.git
- Install dependencies:
pip install -r requirements.txt
-
Set up your MySQL database and configure the connection details in
app.py
. -
Run the Flask application:
python app.py
- Access the application in your browser:
- User 1: http://localhost:5000/user1
- User 2: http://localhost:5000/user2
- Start chatting!
- Real-time messaging using SocketIO.
- Messages are stored in a MySQL database.