FastAPI Full Stack
A Python full-stack application with FastAPI backend.
Tech Stack
- Backend: FastAPI, Python
- Frontend: React
- Database: PostgreSQL
- ORM: SQLAlchemy
Prerequisites
- Python 3.11+
- Docker (recommended)
Setup
1. Clone the Template
git clone --depth 1 https://github.com/tiangolo/full-stack-fastapi-template.git .If the directory is not empty:
git clone --depth 1 https://github.com/tiangolo/full-stack-fastapi-template.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template2. Remove Git History (Optional)
rm -rf .git
git init3. Setup with Docker (Recommended)
docker compose up -d4. Or Setup Manually
cd backend
pip install -r requirements.txtDevelopment
With Docker:
docker compose up -dManual:
cd backend
uvicorn main:app --reload