mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-10-11 20:05:41 +00:00
86 lines
3.7 KiB
Markdown
86 lines
3.7 KiB
Markdown
<div align="center">
|
|
|
|
<img alt="The logo includes the abstract combination of the three letters FBA, forming a lightning bolt that seems to spread out from the ground" width="320" src="https://wu-clan.github.io/picx-images-hosting/logo/fba.png">
|
|
|
|
# FastAPI Best Architecture
|
|
|
|
Enterprise-level backend architecture solution
|
|
|
|
English | [简体中文](./README.zh-CN.md)
|
|
|
|
[](https://github.com/fastapi-practices/fastapi_best_architecture/blob/master/LICENSE)
|
|
[](https://www.python.org/downloads/)
|
|

|
|

|
|

|
|
[](https://pydantic.dev)
|
|
[](https://github.com/astral-sh/ruff)
|
|
[](https://github.com/astral-sh/uv)
|
|

|
|
[](https://discord.com/invite/yNN3wTbVAC)
|
|

|
|
[](https://deepwiki.com/fastapi-practices/fastapi_best_architecture)
|
|
|
|
</div>
|
|
|
|
## Three-tier architecture
|
|
|
|
The MVC architecture is common in Python Web as a general design pattern, but the three-tier architecture is more
|
|
fascinating
|
|
|
|
However, please note that we do not have a traditional multi-app (microservices) directory structure (django,
|
|
springBoot...). ), but a self-righteous directory structure that you can give it any twist if you don't like this model!
|
|
|
|
| workflow | java | fastapi_best_architecture |
|
|
|----------------|----------------|---------------------------|
|
|
| view | controller | api |
|
|
| data transmit | dto | schema |
|
|
| business logic | service + impl | service |
|
|
| data access | dao / mapper | crud |
|
|
| model | model / entity | model |
|
|
|
|
## Help
|
|
|
|
For more details, please check
|
|
the [official documentation](https://fastapi-practices.github.io/fastapi_best_architecture_docs/)
|
|
|
|
## Sponsors
|
|
|
|
<div align="center">
|
|
<table>
|
|
<tr>
|
|
<td align="center">
|
|
<a href="https://claude.uy/home">
|
|
<img src="https://purple-sun-4f5a.wuyao1243.workers.dev/" alt="Claude.uy" width="400">
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
## Contributors
|
|
|
|
<a href="https://github.com/fastapi-practices/fastapi_best_architecture/graphs/contributors">
|
|
<img src="https://contrib.rocks/image?repo=fastapi-practices/fastapi_best_architecture"/>
|
|
</a>
|
|
|
|
## Special thanks
|
|
|
|
- [FastAPI](https://fastapi.tiangolo.com/)
|
|
- [Pydantic](https://docs.pydantic.dev/latest/)
|
|
- [SQLAlchemy](https://docs.sqlalchemy.org/en/20/)
|
|
- [Casbin](https://casbin.org/zh/)
|
|
- [Ruff](https://beta.ruff.rs/docs/)
|
|
- ...
|
|
|
|
## Interactivity
|
|
|
|
[Discord](https://wu-clan.github.io/homepage/)
|
|
|
|
## License
|
|
|
|
This project is licensed by the terms of
|
|
the [MIT](https://github.com/fastapi-practices/fastapi_best_architecture/blob/master/LICENSE) license
|
|
|
|
[](https://starchart.cc/fastapi-practices/fastapi_best_architecture)
|