Tutorial: litestar-fullstack
This project is a fullstack web application template built using the Litestar framework for the Python backend and React with Vite for the frontend. It provides a structured foundation including user authentication, team management, database interactions (using SQLAlchemy), background task processing, and containerization with Docker. Think of it as a ready-to-use starting point for building modern web applications, complete with essential features and development tools.
Source Repository: litestar-fullstack
flowchart TD
A0["Application Configuration (Settings)"]
A1["Litestar Application Core"]
A2["API Controllers"]
A3["Database Models & Services (SQLAlchemy)"]
A4["Authentication & Authorization (Guards)"]
A5["Frontend Build & Integration (Vite & React)"]
A6["Background Tasks (SAQ)"]
A7["Containerization (Docker)"]
A8["Data Schemas & DTOs"]
A9["Development & CLI Tools (Makefile, Pre-commit, CLI Commands)"]
A0 -- "Provides settings to" --> A1
A0 -- "Provides DB connection details" --> A3
A0 -- "Provides Vite settings" --> A5
A0 -- "Provides queue settings" --> A6
A1 -- "Routes requests to" --> A2
A1 -- "Integrates DB plugin/sessions" --> A3
A1 -- "Applies security guards" --> A4
A1 -- "Integrates Vite plugin" --> A5
A1 -- "Integrates task queue plugin" --> A6
A2 -- "Uses services for data ops" --> A3
A2 -- "Protected by guards" --> A4
A2 -- "Uses DTOs for request/response" --> A8
A3 -- "Defines data structure for" --> A8
A4 -- "Uses User service/model" --> A3
A5 -- "Makes API calls to" --> A2
A5 -- "Uses generated API types from" --> A8
A6 -- "Interacts with DB (potentia..." --> A3
A7 -- "Uses settings via env files" --> A0
A7 -- "Runs app container" --> A1
A7 -- "Runs worker container" --> A6
A8 -- "Defines structure based on" --> A3
A9 -- "Executes CLI commands via" --> A1
A9 -- "Manages containers via Make..." --> A7
Generated by AI Codebase Knowledge Builder
Table of contents
- 1. Litestar Application Core
- 2. Application Configuration (Settings)
- 3. API Controllers
- 4. Data Schemas & DTOs
- 5. Database Models & Services (SQLAlchemy)
- 6. Authentication & Authorization (Guards)
- 7. Frontend Build & Integration (Vite & React)
- 8. Background Tasks (SAQ)
- 9. Containerization (Docker)
- 10. Development & CLI Tools (Makefile, Pre-commit, CLI Commands)