How prahlad-dsai/todo-fastapi works
This is a small browser-facing to-do app: FastAPI serves an HTML page and exposes endpoints to list, add, complete, and remove tasks. The same app module initializes the SQLite table and performs the task queries and updates. The template is shown as the page response, but its contents were not provided, so no browser-to-API behavior is inferred. The graph reflects the routes and database operations visible in app.py; no README documentation was supplied.
Main entry points: todos.db Tasks database · app.py Page route · index.html HTML page
Components 9
Web interface
- HTML page
templates/index.html - Page route
app.py
Task operations
- List tasks
app.py - Add task
app.py - Complete task
app.py - Remove task
app.py
Persistence
- Schema initialization
app.py - Tasks database
.gitignore/todos.db
Other components
- Browser
Connections 11
- Browser → Page route: requests page
app.py - Page route → HTML page: renders
app.py - Browser → List tasks: requests tasks
app.py - Browser → Add task: submits task
app.py - Browser → Complete task: marks complete
app.py - Browser → Remove task: removes task
app.py - Schema initialization → Tasks database: creates table
app.py - List tasks → Tasks database: reads tasks
app.py - Add task → Tasks database: inserts task
app.py - Complete task → Tasks database: updates task
app.py - Remove task → Tasks database: deletes task
app.py