{"id":19755181,"url":"https://github.com/fastapi-practices/fastapi_best_architecture_docs","last_synced_at":"2026-03-16T16:39:17.207Z","repository":{"id":257436579,"uuid":"855534641","full_name":"fastapi-practices/fastapi_best_architecture_docs","owner":"fastapi-practices","description":"fastapi_best_architecture  官方文档","archived":false,"fork":false,"pushed_at":"2025-05-12T09:54:21.000Z","size":4873,"stargazers_count":1,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T17:14:02.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://fastapi-practices.github.io/fastapi_best_architecture_docs/","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastapi-practices.png","metadata":{"files":{"readme":"docs/README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-11T02:58:21.000Z","updated_at":"2025-05-12T09:53:41.000Z","dependencies_parsed_at":"2024-10-26T10:32:37.859Z","dependency_job_id":"45b21c29-d0d6-457f-984b-f6929658ab98","html_url":"https://github.com/fastapi-practices/fastapi_best_architecture_docs","commit_stats":null,"previous_names":["fastapi-practices/fastapi_best_architecture_docs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastapi-practices%2Ffastapi_best_architecture_docs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastapi-practices%2Ffastapi_best_architecture_docs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastapi-practices%2Ffastapi_best_architecture_docs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastapi-practices%2Ffastapi_best_architecture_docs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastapi-practices","download_url":"https://codeload.github.com/fastapi-practices/fastapi_best_architecture_docs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253785008,"owners_count":21963902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T03:09:14.853Z","updated_at":"2026-03-16T16:39:17.200Z","avatar_url":"https://github.com/fastapi-practices.png","language":"JavaScript","readme":"---\npageLayout: home\nhome: true\ntitle: fba | FastAPI Best Architecture\nwatermark: false\nsignDown: true\nconfig:\n  - type: hero\n    full: true\n    background: tint-plate\n    tintPlate: 240\n    hero:\n      name: FastAPI Best Architecture\n      tagline: 企业级后端架构解决方案\n      text: 基于 FastAPI 框架，前后端分离，遵循「伪三层架构」设计，支持 Python 3.10+ 版本\n      actions:\n        - theme: brand\n          text: 快速上手 -\u003e\n          link: /backend/summary/quick-start\n        - theme: sponsor\n          text: 在线体验 -\u003e\n          link: https://fastapi-practices.github.io/fba-offline/\n        - theme: alt\n          text: 伪三层架构?\n          link: /backend/summary/intro#伪三层架构\n        - theme: alt\n          text: 为什么选择我们?\n          link: /backend/summary/why\n        - theme: alt\n          text: DeepWiki 文档\n          link: https://deepwiki.com/fastapi-practices/fastapi-best-architecture\n  - type: SponsorHome\n  - type: features\n    features:\n      - title: 现代技术栈\n        icon: ✨\n        details: FastAPI + SQLAlchemy 2.0 + Pydantic v2 + Celery 全栈异步\n      - title: 伪三层架构\n        icon: 🧠\n        details: 极简设计，所有开发者都能轻松上手与扩展\n      - title: 插件系统\n        icon: unjs:unplugin\n        details: 零耦合功能扩展，支持随意拼装\n      - title: 高性能 JWT\n        icon: 🔏\n        details: 内置缓存 + 白名单机制的自研认证中间件\n      - title: 高级权限控制\n        icon: 🛠️\n        details: 完整 RBAC + 精细化数据权限方案\n      - title: 内置代码生成器\n        icon: ⚙️\n        details: 一键生成代码，预览、写入、下载，告别重复 CV\n      - title: 全局时区支持\n        icon: ⌛\n        details: 开箱即用的时区配置，彻底解决时间处理痛点\n      - title: 全链路日志追踪\n        icon: 📝\n        details: Trace ID + 丰富日志，快速定位任何问题\n      - title: 一键容器部署\n        icon: 🐳\n        details: 完整 Docker Compose 方案，极速上线\n  - type: custom\n---\n\n\u003cscript setup lang=\"ts\"\u003e\nimport { computed } from 'vue'\nimport { goldSponsors, generalSponsors, shouldShowSponsor } from '@source/.vuepress/data/sponsors'\n\nconst processedGoldSponsors = computed(() =\u003e\n  goldSponsors.filter(sponsor =\u003e shouldShowSponsor(sponsor) \u0026\u0026 sponsor.link)\n)\n\nconst processedGeneralSponsors = computed(() =\u003e\n  generalSponsors.filter(sponsor =\u003e shouldShowSponsor(sponsor) \u0026\u0026 sponsor.link)\n)\n\nconst showGoldPlaceholder = computed(() =\u003e\n  goldSponsors.some(s =\u003e s.alt?.includes('成为赞助商') \u0026\u0026 !s.link)\n)\n\nconst showGeneralPlaceholder = computed(() =\u003e\n  generalSponsors.some(s =\u003e s.alt?.includes('成为赞助商') \u0026\u0026 !s.link)\n)\n\u003c/script\u003e\n\n\u003cstyle scoped\u003e\n:deep(.swiper-slide-link) {\n  border: 1px solid transparent;\n  transition: all 0.3s ease;\n}\n\n:deep(.swiper-slide-link:hover) {\n  border: 1px solid var(--vp-c-brand);\n}\n\n:deep(.swiper-slide) {\n  background-color: var(--vp-c-bg-soft);\n}\n\u003c/style\u003e\n\n::: center\n\n# 金牌赞助商\n\n:::\n\n\u003cSwiper\nv-if=\"processedGoldSponsors.length \u003e 0\"\n:items=\"processedGoldSponsors\"\nmode=\"broadcast\"\n:loop=\"false\"\n:height=\"162\"\n:slides-per-view=\"3\"\n:space-between=\"10\"\nmousewheel\n/\u003e\n\n::: center\n\n## 银牌赞助商\n\n:::\n\n\u003cSwiper\nv-if=\"processedGeneralSponsors.length \u003e 0\"\n:items=\"processedGeneralSponsors\"\nmode=\"carousel\"\n:height=\"168\"\n:slides-per-view=\"4\"\n:space-between=\"10\"\n:speed=\"5000\"\n/\u003e\n\n::: center\n\n## 贡献者\n\n:::\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/fastapi-practices/fastapi-best-architecture/graphs/contributors\"\u003e\n    \u003cimg src=\"https://contrib.rocks/image?repo=fastapi-practices/fastapi-best-architecture\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastapi-practices%2Ffastapi_best_architecture_docs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastapi-practices%2Ffastapi_best_architecture_docs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastapi-practices%2Ffastapi_best_architecture_docs/lists"}