Modern & production-ready full-stack template that saves you weeks of setup: FastAPI backend + Svelte 5 frontend with containerization, full CI/CD, VS Code support, and AI integrations.
Rename backend/project_slug/ to your project name and update references. See docs/setup.md for detailed instructions.
cd .docker
docker compose up -d
Your services:
๐ก VS Code users: Open the workspace to get tasks, debugger configs, and recommended extensions automatically.
CI/CD automatically builds and pushes Docker images to GitHub Container Registry (GHCR) on every commit. Images are tagged as:
ghcr.io/your-org/your-repo:latest โ production branchghcr.io/your-org/your-repo:dev โ dev branchghcr.io/your-org/your-repo:v1.2.3 โ releasesDeploy with Docker:
# Pull pre-built images and deploy
docker compose pull
docker compose up -d
๐ก Tip: See docs/setup.md for full deployment instructions and environment configuration.
backend/
โโโ api/ # FastAPI application
โ โโโ api/v1/endpoints/ # Route handlers
โ โโโ core/ # Config, database
โ โโโ models/ # SQLAlchemy ORM
โ โโโ schemas/ # Pydantic validation
โ โโโ tests/ # API & ORM tests
โ โโโ alembic/ # Database migrations
โโโ project_slug/ # SDK/service layer (rename me!)
โ โโโ tests/ # SDK unit tests (optional)
โโโ tests/ # E2E integration tests
โโโ data/ # Data storage (volume mounted)
frontend/
โโโ src/
โ โโโ lib/ # Components
โ โโโ main.ts # Entry point
โโโ nginx.conf # Production server
.docker/ # Docker configs
โโโ Dockerfile.backend # Backend build
โโโ Dockerfile.frontend # Frontend build
โโโ docker-compose.yml # Production
โโโ docker-compose.dev.yml # Development
.github/ # CI/CD, Dependabot, CODEOWNERS
.vscode/ # Editor config, tasks, debugger
tools/release_please/ # Release automation config
Backend:
api/: FastAPI app, routes, ORM, database setupproject_slug/: Business logic SDK that can be packaged separately for pip distributionapi/tests/, SDK tests in project_slug/tests/, E2E in tests/)/v1/users (no /api prefix - deploy on api.yourdomain.com)Frontend:
BSD 3-Clause - See LICENSE for details.