How faridntf/fastapi-todo-app-finally works
This repository is a FastAPI todo application. Its main workflow is an HTTP client reaching the mounted API, authenticating where required, then creating, finding, updating, completing, or deleting user tasks; task creation and category filtering also check categories. Separate API areas manage users and profiles. The graph follows the sampled routes and the source index; the README is only a title, so it documents no additional capabilities. Some profile and user implementation details are therefore represented only at the subsystem level.
Main entry points: database.py DB Session · routs.py Task Routes · main.py FastAPI App · services.py User Services
Components 22
API Application
- FastAPI App
backend/main.py
Identity and Profiles
- User Routes
backend/users/routs.py - User Services
backend/users/services.py - User Schemas
backend/users/schema.py - User Model
backend/users/models.py - JWT Auth
backend/auth/jwt_auth.py - Profile Routes
backend/profiles/routs.py - Profile Services
backend/profiles/services.py - Profile Schemas
backend/profiles/schema.py - Profile Model
backend/profiles/models.py
Task Management
- Task Routes
backend/tasks/routs.py - Task Services
backend/tasks/services.py - Task Schemas
backend/tasks/schema.py - Task Model
backend/tasks/models.py
Categories
- Category Routes
backend/categories/routs.py - Category Services
backend/categories/services.py - Category Schemas
backend/categories/schema.py - Category Model
backend/categories/models.py
Persistence and Configuration
- DB Session
backend/core/database.py - Settings
backend/core/setting.py - SQL Database
Other components
- HTTP Client
Connections 31
- HTTP Client → FastAPI App: sends requests
- FastAPI App → User Routes: mounts router
backend/main.py - FastAPI App → Task Routes: mounts router
backend/main.py - FastAPI App → Category Routes: mounts router
backend/main.py - FastAPI App → Profile Routes: mounts router
backend/main.py - User Routes → User Services: calls
backend/users/routs.py - User Routes → User Schemas: validates with
backend/users/routs.py - User Routes → User Model: queries
backend/users/routs.py - User Services → JWT Auth: decodes tokens
backend/users/services.py - User Services → User Model: queries
backend/users/services.py - User Services → DB Session: gets session
backend/users/services.py - Profile Routes → Profile Services: calls
backend/profiles/routs.py - Profile Routes → Profile Schemas: uses schemas
backend/profiles/routs.py - Profile Services → Profile Model: queries
backend/profiles/services.py - Profile Model → User Model: relates to
backend/profiles/models.py - Task Routes → User Services: authenticates with
backend/tasks/routs.py - Task Routes → Task Services: calls
backend/tasks/routs.py - Task Routes → Task Schemas: validates with
backend/tasks/routs.py - Task Routes → Task Model: creates and updates
backend/tasks/routs.py - Task Services → Task Model: queries
backend/tasks/services.py - Task Routes → Category Services: checks categories
backend/tasks/routs.py - Category Routes → Category Services: calls
backend/categories/routs.py - Category Routes → Category Schemas: uses schemas
backend/categories/routs.py - Category Services → Category Model: queries
backend/categories/services.py - Category Model → DB Session: uses base
backend/categories/models.py - Task Model → DB Session: uses base
backend/tasks/models.py - User Model → DB Session: uses base
backend/users/models.py - Profile Model → DB Session: uses base
backend/profiles/models.py - DB Session → Settings: loads config
backend/core/database.py - DB Session → SQL Database: connects to
backend/core/database.py - JWT Auth → Settings: loads secrets
backend/auth/jwt_auth.py