A real-time chat application built with Flask, Socket.io, and JavaScript that allows users to chat in real-time. The project includes user authentication, message persistence, and websocket communication for seamless message delivery.
✅ Real-time Messaging – Instant message delivery with WebSockets using Socket.io
✅ User Authentication – Secure login and registration system
✅ Message Persistence – Messages are stored in the database for future reference
✅ Chat Rooms – Users can join specific chat rooms for group discussions
✅ Emojis Support – Includes a simple emoji set to enhance chat experience
- Backend: Flask, Flask-SocketIO
- Frontend: HTML, CSS, JavaScript
- Database: SQLite
- WebSocket: Socket.io for real-time communication
📁 Real-time_Chat_Application
│── 📂 static/ # CSS, JS, images
│── 📂 templates/ # HTML templates
│── 📂 models/ # Database models
│── 📜 app.py # Main Flask application
│── 📜 config.py # Configuration settings
│── 📜 requirements.txt # Dependencies
│── 📜 README.md # Project documentation
│── 📜 .env # API keys and secrets (not included in repo)
git clone https://github.com/aircode610/Real-time_Chat_Application.git
cd Real-time_Chat_Applicationpython -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtCreate a .env file in the root directory and add:
SECRET_KEY=your_secret_key
flask runVisit http://127.0.0.1:5000/ in your browser.
Users can send messages to each other in real-time through WebSockets.
Users need to register and log in to start chatting. Passwords are securely stored and hashed.
Users can join various chat rooms by selecting one from the interface. Once inside, they can chat with others in that room.
A basic set of emojis are included to enhance chat messages.
You can watch the video walkthrough of this project on YouTube:
Real-time Chat Application Demo