How nlkris/tigersproject works
This is a Flask social microblog: users sign up, discover accounts, view followed and recommended posts, and interact through profiles, comments, retweets, and notifications. The app registers a route blueprint; route handlers use JSON-backed helpers for users, tweets, and notifications. The excerpts show the feed rendering and some interaction paths, but not every handler, so unsampled feature links are omitted rather than inferred. The separate backend database and models modules are present but are not shown participating in the app’s runtime flow.
Main entry points: routes.py Route handlers · data_manager.py Data manager · app.py Flask app · users.json Users JSON
Components 15
Web runtime
- Flask app
app.py - Route handlers
backend/routes.py
Social features
- Accounts
backend/routes.py - User discovery
backend/routes.py - Feed
backend/routes.py - Profiles
backend/routes.py - Comments and replies
backend/routes.py - Retweets
backend/routes.py - Notifications
backend/routes.py
JSON persistence
- Data manager
utils/data_manager.py - Users JSON
data/users.json - Tweets JSON
data/tweets.json - Notifications JSON
backend/data/notifications.json
Web views
- Feed template
templates/feed.html
Other components
- Visitor
Connections 9
- Flask app → Route handlers: registers blueprint
app.py - Visitor → Route handlers: sends requests
backend/routes.py - Route handlers → Data manager: uses helpers
backend/routes.py - Flask app → Data manager: initializes data
app.py - Route handlers → Feed template: renders
backend/routes.py - Data manager → Users JSON: reads and writes
utils/data_manager.py - Data manager → Tweets JSON: reads and writes
utils/data_manager.py - Data manager → Notifications JSON: reads and writes
utils/data_manager.py - Route handlers → Notifications: adds notifications
backend/routes.py