How yasirali0/full-stack-fastapi-template works
Main Components
• Frontend: Represent the React web client (located in the “frontend” folder). This component is built with modern JavaScript/TypeScript tooling (using Vite, Chakra UI, and Playwright for testing) and interacts with the backend API.
• Backend: Represent the FastAPI application (located in the “backend” folder). Key modules include:
– API Routes: Under “backend/app/api/routes”, which includes endpoints for items, users, login, and utilities.
– Core Services: In “backend/app/core” for configuration management, database connections (using SQLModel) and security (password hashing, JWT).
– Database Migration: The “alembic” folder inside “backend/app” runs migration scripts for the database (PostgreSQL).
– Email Templates: A dedicated module for email templates used in account creation and password resets.
– Testing: A comprehensive suite under “backend/app/tests”, using Pytest.
• Database: Show the PostgreSQL database (mentioned in the README) that interacts with the backend via the ORM (SQLModel).
• External Services & Deployment Tools:
– Reverse Proxy / Load Balancer (Traefik), as described in the README and Docker Compose files.
– Docker and Docker Compose, indicated by multiple Dockerfiles and Compose configuration files.
– GitHub Actions workflows (found in “.github/workflows”) ensuring CI/CD pipeline integration.
– Environment configurations (through .env files, copier settings, and deployment documents).
Relationships and Interactions
• The Backend sends emails (using SMTP, as configured in the .env files) for notifications like account recovery.
Architectural Patterns and Important Details
• Testing Infrastructure: Optionally include a testing component showing the integration tests with Playwright (frontend) and Pytest (backend) to show continuous quality assurance.