How 0jj123/demo1117 works
This is a FastAPI paper-submission and review application. Authors log in, create and edit papers, then submit them for editorial review; editors can inspect submissions and approve or reject them, changing their status. The application also provides role-specific lists and session-based login/logout. main.py owns the routes, authorization checks, SQL operations, and template rendering; db.py supplies the pooled PostgreSQL connection lifecycle. The excerpts show route-to-database and route-to-template relationships, but do not include the contents of schema.sql, so its schema details are not mapped.
Main entry points: main.py Application routes · db.py Database access · templates HTML templates
Components 9
Web application
- Application routes
main.py - Session authentication
main.py - HTML templates
templates
Author workflow
- Paper authoring
main.py
Editorial workflow
- Editorial review
main.py
Persistence
- Database access
db.py - Papers database
Other components
- Author
- Editor
Connections 10
- Author → Application routes: uses routes
main.py - Editor → Application routes: uses routes
main.py - Application routes → Session authentication: checks sessions
main.py - Application routes → HTML templates: renders pages
main.py - Application routes → Paper authoring: routes author
main.py - Application routes → Editorial review: routes editor
main.py - Application routes → Database access: gets connection
main.py - Paper authoring → Database access: queries and updates
main.py - Editorial review → Database access: queries and updates
main.py - Database access → Papers database: opens pool
db.py