How ray20060511-maker/113213011_midterm works
This is a small FastAPI submission-and-review application. Users access the served homepage and use API routes to register or log in, draft and manage articles, submit them for review, and approve or return them. The routes use SQLAlchemy models and database sessions backed by PostgreSQL. Workflow stages share main.py; the index.html contents were not sampled, so its client-side behavior is unknown.
Main entry points: main.py FastAPI routes · database.py Database sessions · models.py User and article models · index.html Homepage
Components 9
Web interface
- Homepage
index.html
Submission workflow
- FastAPI routes
main.py - Account access
main.py - Author submissions
main.py - Editorial review
main.py
Data persistence
- User and article models
models.py - Database sessions
database.py
Other components
- User
- PostgreSQL
Connections 13
- User → FastAPI routes: uses routes
main.py - FastAPI routes → Homepage: serves
main.py - FastAPI routes → Account access: routes login
main.py - FastAPI routes → Author submissions: routes submissions
main.py - FastAPI routes → Editorial review: routes review
main.py - Account access → User and article models: queries users
main.py - Author submissions → User and article models: queries articles
main.py - Editorial review → User and article models: queries articles
main.py - Account access → Database sessions: uses sessions
main.py - Author submissions → Database sessions: uses sessions
main.py - Editorial review → Database sessions: uses sessions
main.py - User and article models → Database sessions: uses base
models.py - Database sessions → PostgreSQL: connects to
database.py