Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Blueprint4Agent/B4FastAPI

Repository files navigation

Blueprint4FastAPI

Blueprint4FastAPI is a full-stack template with:

  • Backend: FastAPI + SQLAlchemy + Alembic + Redis
  • Frontend: React + TypeScript + OpenAPI-generated API types
  • Monolithic static serving support (frontend build copied into backend static path)

Documentation Entry

  1. Agent/workflow rules: AGENTS.md
  2. Deployment guide: DEPLOY.md
  3. Backend engineering rules: src/backend/BACKEND.md
  4. Frontend engineering rules: src/frontend/FRONTEND.md
  5. Backend quick guide: src/backend/README.md
  6. Frontend quick guide: src/frontend/README.md

Localized documentation rule:

  • Keep translated/localized docs under notes/<locale>/....
  • Mirror the original document structure by domain (backend, frontend, etc.).

Current locale example (ko):

  1. Root guide: notes/ko/README.md
  2. Agent/workflow rules: notes/ko/AGENTS.md
  3. Deployment guide: notes/ko/DEPLOY.md
  4. Backend engineering rules: notes/ko/backend/BACKEND.md
  5. Frontend engineering rules: notes/ko/frontend/FRONTEND.md
  6. Backend test guide: notes/ko/backend/TEST.md
  7. Frontend test guide: notes/ko/frontend/TEST.md

Repository Layout

src/
 backend/
 frontend/
docker/
 scripts/

Quick Start

  1. Initialize env files:
make init
  1. Run backend (local development):
make backend-install
make backend-dev
  1. Run frontend (local development):
make frontend-install
make frontend-dev
  1. Open:
  • Backend API docs: http://localhost:8000/docs
  • Frontend app (Vite): http://localhost:5173

Make Workflow Hooks

Run make help to list the available workflow hooks.

Common targets:

make install # Install backend and frontend dependencies
make backend-dev # Run FastAPI development server
make frontend-dev # Run Vite development server
make build # Build backend environment and frontend artifacts
make test # Run backend and frontend tests
make check # Run backend lint and frontend format checks
make format # Format backend and frontend code
make ci # Run check, test, and build

Docker targets:

make docker-build
make docker-up
make docker-logs DOCKER_SERVICE=app
make docker-down
make docker-deploy
make docker-export
make docker-observability-up
make docker-observability-down

Docker Deployment (Bash Only)

  1. Prepare env:
make init
  1. Build app image:
make docker-build
  1. Start services (app + optional local postgres/redis based on docker/.env):
make docker-up
  1. View logs:
make docker-logs DOCKER_SERVICE=app
  1. Stop services:
make docker-down
  1. One-shot deploy (build + recreate + export tar):
make docker-deploy
  1. Export app image tar:
make docker-export

Exported image files are stored in docker/artifacts/.

Build

Backend:

make backend-format
make backend-test

Frontend:

make frontend-format
make frontend-build

About

FastAPI-based full-stack web server blueprint for agentic coding workflows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /