How jordan73737/chirp works
Chirp is a social networking web application. Users register or sign in, then create and interact with posts, manage profiles and friendships, and exchange messages; chat supports live delivery, typing indicators, and read receipts. Flask routes handle HTTP workflows, while Socket.IO handles real-time chat events. Both use SQLAlchemy-backed models for persistent state. The README also documents Google and Microsoft OAuth, though its implementation is not shown in the sampled source. The graph preserves that capability as an unverified optional integration; unsampled routes and templates are represented only at their existing directory paths.
Main entry points: routes.py HTTP routes · models.py Domain models · __init__.py App factory · socket_events.py Socket event handlers
Components 15
Web application
- App factory
app/__init__.py - HTTP routes
app/routes.py - Validated forms
app/forms.py - Web pages
app/templates - OAuth sign-in
app
Social features
- Profiles and friendships
app/routes.py - Posts and feed
app/routes.py - Notifications
app/routes.py
Real-time messaging
- Browser socket client
app/static/js/socket.js - Socket event handlers
app/socket_events.py
Configuration and state
- App configuration
config.py - Domain models
app/models.py - PostgreSQL database
- Mail service
Other components
- User
Connections 19
- User → HTTP routes: uses HTTP
README.md - App factory → App configuration: loads settings
app/__init__.py - App factory → HTTP routes: registers routes
app/__init__.py - App factory → Domain models: loads models
app/__init__.py - App factory → Socket event handlers: loads handlers
app/__init__.py - HTTP routes → Validated forms: uses forms
app/routes.py - HTTP routes → Domain models: queries and updates
app/routes.py - HTTP routes → Web pages: renders pages
app/routes.py - HTTP routes → Mail service: sends email
- User → Profiles and friendships: manages account
README.md - Profiles and friendships → Domain models: updates profiles
app/routes.py - Posts and feed → Domain models: updates posts
app/routes.py - Notifications → Domain models: reads and updates
app/routes.py - User → Browser socket client: chats in browser
app/static/js/socket.js - Browser socket client → Socket event handlers: emits socket events
app/static/js/socket.js - Socket event handlers → Domain models: stores messages
app/socket_events.py - HTTP routes → PostgreSQL database: commits route changes
app/routes.py - Socket event handlers → PostgreSQL database: commits messages
app/socket_events.py - User → OAuth sign-in: signs in
README.md