This API template designed with DDD and Clean Architecture using FastAPI.
With this template, I implemented a system that provides role-based secure access management service for users.
- python 3.12
- fastapi
- pytest
- SQLAlchemy
READ SET_UP.md
docker-compose up --build
mysql -h 127.0.0.1 -P 3306 -u user -p
# Enter password: pass
pip install pytest pytest-env httpx
pytest -v ./test
refer : https://buildersbox.corp-sansan.com/entry/2019/07/10/110000
πdirectory
app
βββ application # application layer
βββ domain
βΒ Β βββ model # domain layer
βββ exception # exception class package
βββ port
βββ adapter # port/adapter layer
βββ persistence
βββ resource
βΒ Β βββ health
βΒ Β βββ health_resource.py
βββ service