A modern, real-time chat application built with Flask and WebSockets. This app allows users to create or join chat rooms with instant messaging, live user tracking, and a mobile-responsive UI.
- Real-time Messaging: Instant communication using Flask-SocketIO.
- Room System: Create unique 4-letter room codes or join existing ones.
- Live User Sidebar: See who is currently online in the room.
- Modern UI: Styled with Tailwind CSS for a sleek look.
- Mobile Responsive: Optimized for all devices, including mobile viewports.
- Smart Notifications: System alerts when users enter or leave the room.
- Backend: Python, Flask
- Real-time: Flask-SocketIO (with Eventlet worker)
- Frontend: HTML5, Tailwind CSS, JavaScript
- Deployment: Heroku
git clone https://github.com/Mkaify/Python_Live_Chat_App.git
cd Python_Live_Chat_App
pip install -r requirements.txtCreate a .env file in the root directory:
SECRET_KEY=your_random_secret_keypython main.py
Visit http://127.0.0.1:5000 in your browser.This app is configured to run on Heroku using the eventlet worker for WebSocket support.
Ensure .python-version is set to 3.11.
heroku config:set SECRET_KEY=your_secret_keygit push heroku main- MIT License. Feel free to use and modify!