Learning project · 2025-2026
Flask Real-Time Chat Application
A realtime chat app built to learn WebSockets properly: Flask-SocketIO messaging, session-based auth, and an MVC-style backend.
problem
Built to understand realtime communication end to end: socket lifecycles, session auth, and keeping event handlers out of the route layer.
outcomes
- Connected authenticated users through realtime messaging
- Kept routing, session state, and socket events organized
what i built
- Flask backend with structured routes
- Real-time communication using Flask-SocketIO
- WebSocket-based messaging
- Session-based authentication
- User registration and login logic
- Database-backed user models
- Managed user sessions
- MVC-style project structure
tech stack
PythonFlaskFlask-SocketIOSQLAlchemyWebSocketsHTMLCSS
Read the source
The repo has the code, structure, and implementation detail.