Skip to content

🌟使用 FastAPI + SQLModel + SQLAlchemy + MySQL + Alembic 构建的后端基础框架

Notifications You must be signed in to change notification settings

Cassianvale/line_fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

line_api

使用 FastAPI + SQLModel + SQLAlchemy + MySQL + Alembic 构建的后端基础框架

Features

版本依赖

1.更新依赖文件
pip freeze > ./requirements.txt

2.安装依赖(国内镜像源加速)
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

3.执行main.py文件
python main.py

Alembic数据库迁移工具常用命令

初始化迁移
alembic init alembic

降级
alembic downgrade 版本号

测试
alembic -c alembic.ini --name dev revision --autogenerate -m 0.0.1

alembic --name dev upgrade head

About

🌟使用 FastAPI + SQLModel + SQLAlchemy + MySQL + Alembic 构建的后端基础框架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published