How sousou15/jabber works
Jabber is a language-oriented chat application. Users enter through the home or login screen, register or authenticate, then select a language room to load its history and exchange live messages; the backend also exposes profile and session endpoints. The backend’s Flask application owns the routes, Socket.IO handlers, and SQLAlchemy models. The supplied excerpts show the frontend-to-backend calls, but no separate frontend profile flow. Several responsibilities share the monolithic backend path.
Main entry points: jabber.jsx Chat interface · app.py User and message models · App.jsx Route application · login.jsx Login and signup
Components 13
Web interface
- Route application
FrontEnd/src/App.jsx - Home page
FrontEnd/src/pages/Home.jsx
Identity and profiles
- Login and signup
FrontEnd/src/pages/login.jsx - Flask application
BackEnd/src/app.py - Auth and profile API
BackEnd/src/app.py - Session API
BackEnd/src/app.py
Room messaging
- Chat interface
FrontEnd/src/pages/jabber.jsx - Send icon
FrontEnd/src/components/sendicon.jsx - Room history API
BackEnd/src/app.py - Realtime room handlers
BackEnd/src/app.py
Persistence
- User and message models
BackEnd/src/app.py - MySQL database
Other components
- Visitor
Connections 16
- Visitor → Route application: opens
- Route application → Home page: routes to
FrontEnd/src/App.jsx - Route application → Login and signup: routes to
FrontEnd/src/App.jsx - Route application → Chat interface: routes to
FrontEnd/src/App.jsx - Login and signup → Auth and profile API: posts credentials
FrontEnd/src/pages/login.jsx - Chat interface → Session API: checks session
FrontEnd/src/pages/jabber.jsx - Chat interface → Session API: requests logout
FrontEnd/src/pages/jabber.jsx - Chat interface → Room history API: fetches history
FrontEnd/src/pages/jabber.jsx - Chat interface → Realtime room handlers: emits room events
FrontEnd/src/pages/jabber.jsx - Realtime room handlers → Chat interface: broadcasts messages
BackEnd/src/app.py - Chat interface → Send icon: renders
FrontEnd/src/pages/jabber.jsx - Auth and profile API → User and message models: queries and updates
BackEnd/src/app.py - Session API → User and message models: reads user session
BackEnd/src/app.py - Room history API → User and message models: queries messages
BackEnd/src/app.py - Realtime room handlers → User and message models: stores messages
BackEnd/src/app.py - User and message models → MySQL database: persists records
BackEnd/src/app.py