How sarmad426/fastapi works
This repository is a collection of independent FastAPI learning examples and small web apps, not one integrated service. In the sampled CRUD flows, a client request reaches an API handler, which validates or shapes data and uses a database session to read or write records; the SQLModel example also models Team–Hero relationships. Other branches cover authentication, quizzes, tweets with image uploads, image background removal, music recommendations, and practical FastAPI topics such as WebSockets and OAuth. Several subsystems are represented by paths and filenames only; their internal calls and client-to-server wiring are not asserted.
Main entry points: tweets-app/main.py Tweets API · fastapi-sqlmodel/main.py Teams and heroes API · todo_app/main.py Todo API · auth-app/main.py Authentication API
Components 24
CRUD examples
- Teams and heroes API
1-Learn/fastapi-sqlmodel/main.py - Team and hero models
1-Learn/fastapi-sqlmodel/schema.py - SQLModel database
1-Learn/fastapi-sqlmodel/db_connection.py - Todo API
Back-end/poetry-class/poetryclass/todo_app/main.py - Todo database
Back-end/poetry-class/poetryclass/todo_app/database.py
Web applications
- Authentication API
Back-end/poetry-class/poetryclass/auth-app/main.py - User database and models
Back-end/poetry-class/poetryclass/auth-app/db.py - Quiz app
Back-end/poetry-class/poetryclass/quiz-app/main.py - Quiz database
Back-end/poetry-class/poetryclass/quiz-app/database.py - Tweets API
Back-end/poetry-class/poetryclass/tweets-app/main.py - Tweet model
Back-end/poetry-class/poetryclass/tweets-app/models.py - Tweets database
Back-end/poetry-class/poetryclass/tweets-app/database.py - Image upload helper
Back-end/poetry-class/poetryclass/tweets-app/utils.py - Background removal API
Back-end/poetry-class/poetryclass/img-bg-remover/main.py - Music recommender
Back-end/poetry-class/poetryclass/music_recommender/main.py
FastAPI topics
- Practical API examples
Back-end/poetry-class/poetryclass/practical - WebSocket examples
Back-end/poetry-class/poetryclass/practical/web-sockets
Browser clients
- Login and registration UI
Front-end/auth-app/script.js - Todo UI
Front-end/todo-app - Quiz UI
Front-end/quiz-app/scripts - Tweets UI
Front-end/tweets-app - Background remover UI
Front-end/img-bg-remover/script.js - Music recommender UI
Front-end/music-recommender/script.js
Other components
- User
Connections 17
- User → Teams and heroes API: sends requests
1-Learn/fastapi-sqlmodel/main.py - Teams and heroes API → Team and hero models: uses models
1-Learn/fastapi-sqlmodel/main.py - Teams and heroes API → SQLModel database: gets sessions
1-Learn/fastapi-sqlmodel/main.py - User → Todo API: sends requests
Back-end/poetry-class/poetryclass/todo_app/main.py - Todo API → Todo database: gets sessions
Back-end/poetry-class/poetryclass/todo_app/main.py - User → Login and registration UI: uses
- Login and registration UI → Authentication API: calls login
Front-end/auth-app/script.js - Authentication API → User database and models: uses database
Back-end/poetry-class/poetryclass/auth-app/main.py - User → Quiz app: uses
- User → Tweets API: sends requests
Back-end/poetry-class/poetryclass/tweets-app/main.py - Tweets API → Tweet model: uses model
Back-end/poetry-class/poetryclass/tweets-app/main.py - Tweets API → Tweets database: gets database
Back-end/poetry-class/poetryclass/tweets-app/main.py - Tweets API → Image upload helper: saves images
Back-end/poetry-class/poetryclass/tweets-app/main.py - User → Background removal API: uploads image
Back-end/poetry-class/poetryclass/img-bg-remover/main.py - User → Music recommender: uses
- User → Practical API examples: uses examples
- User → WebSocket examples: uses examples