fastapi-fullstack

majiayu000 的头像作者 majiayu000

Python 全栈,包含 FastAPI、React、PostgreSQL 和 Docker。

📖 中文导读:Python 全栈,包含 FastAPI、React、PostgreSQL 和 Docker。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: fastapi-fullstack description: Python full-stack with FastAPI, React, PostgreSQL, and Docker.

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_template

2. Remove Git History (Optional)

rm -rf .git
git init
docker compose up -d

4. Or Setup Manually

cd backend
pip install -r requirements.txt

Development

With Docker:

docker compose up -d

Manual:

cd backend
uvicorn main:app --reload