# full-stack-fastapi **Repository Path**: weswu/full-stack-fastapi ## Basic Information - **Project Name**: full-stack-fastapi - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-18 - **Last Updated**: 2026-10-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Full Stack FastAPI Template [![Test Docker Compose](../../actions/workflows/test-docker-compose.yml/badge.svg)](../../actions/workflows/test-docker-compose.yml) [![Test Backend](../../actions/workflows/test-backend.yml/badge.svg)](../../actions/workflows/test-backend.yml) # 启动 FastAPI 开发服务器 conda activate wxwenv cd backend bash scripts/prestart.sh # 初始化数据库 fastapi dev app/main.py --host 0.0.0.0 --port 9036 # 启动前端 cd frontend npm run dev -- --host 0.0.0.0 --port 9035 访问:前端地址通常是 http://localhost:9035 后端 API 是 http://localhost:9036 后端 API 是 http://localhost:9036/docs pkill -f "fastapi dev app/main.py" pkill -f "vite --host 0.0.0.0 --port 9035" ss -ltnp | grep -E ':9035|:9036' ## Technology Stack and Features - ⚡ [**FastAPI**](https://fastapi.tiangolo.com) for the Python backend API. - 🧰 [SQLModel](https://sqlmodel.tiangolo.com) for the Python SQL database interactions (ORM). - 🔍 [Pydantic](https://docs.pydantic.dev), used by FastAPI, for the data validation and settings management. - 💾 [PostgreSQL](https://www.postgresql.org) as the SQL database. - 🚀 [React](https://react.dev) for the frontend. - 🧩 Built into the backend application and served by FastAPI on the same domain as the API. - 💃 Using TypeScript, hooks, [Vite](https://vitejs.dev), and other parts of a modern frontend stack. - 🎨 [Tailwind CSS](https://tailwindcss.com) and [shadcn/ui](https://ui.shadcn.com) for the frontend components. - 🤖 An automatically generated frontend client. - 🧪 [Playwright](https://playwright.dev) for end-to-end testing. - 🦇 Dark mode support. - ☁️ [FastAPI Cloud](https://fastapicloud.com) for deployment. - 🐋 [Docker Compose](https://www.docker.com) for local services and self-hosted deployment. - 📞 [Traefik](https://traefik.io) as a reverse proxy with automatic HTTPS. - 🔒 Secure password hashing by default. - 🔑 JWT (JSON Web Token) authentication. - 📫 Email-based password recovery. - ✉️ [React Email](https://react.email) for email templates. - 📬 [Mailpit](https://mailpit.axllent.org) for local email testing during development. - ✅ Tests with [Pytest](https://pytest.org). - 🏭 CI (continuous integration) and CD (continuous deployment) based on GitHub Actions. ### Dashboard Login ![Dashboard login screenshot](img/login.png) ### Dashboard - Admin ![Admin dashboard screenshot](img/dashboard.png) ### Dashboard - Items ![Items dashboard screenshot](img/dashboard-items.png) ### Dashboard - Dark Mode ![Dark mode dashboard screenshot](img/dashboard-dark.png) ### React Email Templates ![Email templates screenshot](img/react-email.png) ### Mailpit - Local Email Testing ![Mailpit screenshot](img/mailpit.png) ### Interactive API Documentation ![API docs](img/docs.png) ## How to Use It Click the **Use this template** button at the top of this page to create a new repository. ## Backend Development Backend docs: [backend/README.md](./backend/README.md). ## Frontend Development Frontend docs: [frontend/README.md](./frontend/README.md). ## Deployment FastAPI Cloud deployment: [deployment.md](./deployment.md). Self-hosted deployment with Docker Compose: [deployment-docker-compose.md](./deployment-docker-compose.md). ## Development General development docs: [development.md](./development.md). This includes the local FastAPI and Vite workflow, Docker Compose services, `.env` configuration, and more. ## Release Notes Check the file [release-notes.md](./release-notes.md). ## License The Full Stack FastAPI Template is licensed under the terms of the MIT license.