How chhavi-lohani-14/devtrack works
DevTrack is a FastAPI task-management API. Its principal workflow authenticates a user, then lets that user create and manage only their own tasks; an admin can list all tasks. The main module owns HTTP routes and orchestration, using Pydantic schemas, authentication helpers, SQLAlchemy models, and a SQLite-backed session layer. The README also documents registration, password hashing, JWT authentication, ownership enforcement, and admin access. The sampled source shows these runtime relationships; tests and CI are excluded.
Main entry points: main.py Registration and login · database.py Database sessions · models.py User and task models · schemas.py Response schemas
Components 12
API workflows
- API routes
app/main.py - Task operations
app/main.py - Admin task listing
app/main.py - Request validation
app/schemas.py - Response schemas
app/schemas.py
Identity and access
- Registration and login
app/main.py - Token and role checks
app/main.py - Password and JWT helpers
app/auth.py
Persistence and data
- User and task models
app/models.py - Database sessions
app/database.py - SQLite database
app/database.py
Other components
- API client
Connections 24
- API client → API routes: sends requests
app/main.py - API routes → Registration and login: dispatches auth
app/main.py - API routes → Task operations: dispatches tasks
app/main.py - API routes → Admin task listing: dispatches admin
app/main.py - Registration and login → Request validation: validates input
app/main.py - Task operations → Request validation: validates input
app/main.py - Registration and login → Password and JWT helpers: hashes and verifies
app/main.py - Registration and login → Password and JWT helpers: creates tokens
app/main.py - Token and role checks → Password and JWT helpers: decodes tokens
app/main.py - Task operations → Token and role checks: requires user
app/main.py - Admin task listing → Token and role checks: requires admin
app/main.py - Registration and login → Database sessions: queries and writes
app/main.py - Token and role checks → Database sessions: looks up user
app/main.py - Task operations → Database sessions: queries and writes
app/main.py - Admin task listing → Database sessions: queries tasks
app/main.py - Database sessions → SQLite database: opens sessions
app/database.py - Registration and login → User and task models: creates user
app/main.py - Token and role checks → User and task models: queries user
app/main.py - Task operations → User and task models: queries and mutates
app/main.py - Admin task listing → User and task models: queries tasks
app/main.py - User and task models → Database sessions: uses base
app/models.py - Registration and login → Response schemas: returns user or token
app/main.py - Task operations → Response schemas: returns task data
app/main.py - Admin task listing → Response schemas: returns task list
app/main.py