跳转至

FastAPI全栈模板

🌐 Translation by AI and humans

This translation was made by AI guided by humans. 🤝

It could have mistakes of misunderstanding the original meaning, or looking unnatural, etc. 🤖

You can improve this translation by helping us guide the AI LLM better.

English version

模板通常带有特定的设置,但它们被设计为灵活且可定制。这样你可以根据项目需求进行修改和调整,使其成为很好的起点。🏁

你可以使用此模板开始,它已经为你完成了大量的初始设置、安全性、数据库以及一些 API 端点。

GitHub 仓库: Full Stack FastAPI Template

FastAPI全栈模板 - 技术栈和特性

  • FastAPI 用于 Python 后端 API。
  • 🧰 SQLModel 用于 Python 与 SQL 数据库的交互(ORM)。
  • 🔍 Pydantic,FastAPI 使用,用于数据验证与配置管理。
  • 💾 PostgreSQL 作为 SQL 数据库。
  • 🚀 React 用于前端。
  • 💃 使用 TypeScript、hooks、Vite 以及现代前端技术栈的其他部分。
  • 🎨 Tailwind CSSshadcn/ui 用于前端组件。
  • 🤖 自动生成的前端客户端。
  • 🧪 Playwright 用于端到端测试。
  • 🦇 支持暗黑模式。
  • 🐋 Docker Compose 用于开发与生产。
  • 🔒 默认启用安全的密码哈希。
  • 🔑 JWT(JSON Web Token)认证。
  • 📫 基于邮箱的密码找回。
  • ✅ 使用 Pytest 进行测试。
  • 📞 Traefik 用作反向代理/负载均衡。
  • 🚢 使用 Docker Compose 的部署指南,包括如何设置前端 Traefik 代理以自动处理 HTTPS 证书。
  • 🏭 基于 GitHub Actions 的 CI(持续集成)与 CD(持续部署)。