How simiremichael/crude-fastapi works
This is a small FastAPI backend for user authentication and a media-post feed. The main workflow is an authenticated upload: the API stages a file, sends it to ImageKit, and records post metadata in SQLite; authenticated users can also list and delete posts. Authentication and user-management routes are provided through FastAPI Users. The README is empty, so the graph relies on the sampled source; it does not show the full behavior of framework-generated routes.
Main entry points: app.py API routes · db.py User and post models · users.py Auth services · images.py ImageKit client
Components 9
API
- Server entry
main.py - API routes
app/app.py - API schemas
app/schemas.py
Identity
- Auth services
app/users.py
Posts and media
- User and post models
app/db.py - SQLite database
test.db - ImageKit
- ImageKit client
app/images.py
Other components
- API client
Connections 11
- API client → API routes: calls endpoints
app/app.py - Server entry → API routes: runs app
main.py - API routes → Auth services: registers auth routes
app/app.py - API routes → Auth services: requires active user
app/app.py - API routes → API schemas: uses schemas
app/app.py - Auth services → User and post models: loads user database
app/users.py - API routes → User and post models: creates tables
app/app.py - API routes → User and post models: reads and writes posts
app/app.py - User and post models → SQLite database: stores records
app/db.py - API routes → ImageKit client: uses client
app/app.py - ImageKit client → ImageKit: uploads media
app/images.py