Skip to content

πŸ› οΈ DDD API template designed with Clean Architecture using FastAPI

Notifications You must be signed in to change notification settings

gtaiyou24/clean-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Clean Architecture

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.

πŸ“–How To

πŸ’» Set Up

READ SET_UP.md

πŸƒ Start

docker-compose up --build
mysql -h 127.0.0.1 -P 3306 -u user -p
# Enter password: pass

βœ… Test

pip install pytest pytest-env httpx
pytest -v ./test

πŸ›  Architecture

πŸ›  Infra

Infra

πŸ›  Application

Clean Architecture

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

πŸ”—Appendix

About

πŸ› οΈ DDD API template designed with Clean Architecture using FastAPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages