提供基本前后端骨架

This commit is contained in:
hisatri
2026-01-06 23:49:23 +08:00
parent 84d4ccc226
commit 06f8176e23
89 changed files with 19293 additions and 2 deletions

24
main.py Normal file
View File

@@ -0,0 +1,24 @@
"""
应用启动入口
使用 uvicorn 运行 FastAPI 应用。
"""
import uvicorn
from app.core.config import settings
def main():
"""启动应用服务器"""
uvicorn.run(
"app.main:app",
host="0.0.0.0",
port=8000,
reload=settings.debug,
log_level="debug" if settings.debug else "info",
)
if __name__ == "__main__":
main()