Skip to content
프로젝트

ivan-borovets/fastapi-clean-example

GitHub에서 보기

소개

FastAPI로 구축한 실용적인 클린 아키텍처 백엔드 예제입니다. 상태를 가진 전역 변수를 사용하지 않고(DI), 낮은 결합도(DIP), 전술적 DDD, CQRS, 올바른 UoW 사용을 적용했습니다. REST API, 라우트별 오류 처리, 세션 기반 인증, 컨텍스트 기반 RBAC를 제공하며, 풍부한 문서와 최신 도구도 함께 포함합니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+4
in 15 days
+7
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Mentioned in Awesome FastAPI

Stay tuned. Refactor in progress, see legacy-2025 branch for architecture docs

TODO:

  • Write tests
  • Explain code and patterns in new README
  • Make template project

Prerequisites

uv sync
source .venv/bin/activate
prek install --overwrite --hook-type pre-commit --hook-type pre-push

Start in Docker

make upd

Start locally

make upd-local
alembic upgrade head
uvicorn app.main.run:make_app --factory --host 0.0.0.0 --port 8000 --reload
# or `src/app/main/run.py` in IDE

Full API access:

  • create user via sign up
  • set its role to super_admin manually in DB
  • log in as super admin

Stop

make down

Test (light paths)

make check

Test (all paths)

make test-docker

Generate a migration

make migration msg=<msg>

See Makefile for more commands

Thanks for your patience and support

Acknowledgements

관련 프로젝트 살펴보기

불러오는 중…