プロジェクト
GitHubで見る
ivan-borovets/fastapi-clean-example
概要
FastAPIで構築した、実践的なクリーンアーキテクチャのバックエンド例です。状態を持つグローバル変数を使わず(DI)、低結合(DIP)、戦術的DDD、CQRS、適切なUoWの利用を取り入れています。REST API、ルート単位のエラー処理、セッションベース認証、コンテキストに応じたRBACを備え、充実したドキュメントとモダンなツールも含まれています。
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- +4
- 15日間
- +7
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル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_adminmanually 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
関連プロジェクトを探す
読み込み中…