Skip to content

coscidata/flask_api_boilerplate

Repository files navigation

app

pyversions

开发

安装依赖

pip install -r requirements-dev.txt

创建数据库

CREATE DATABASE `{db_name}` DEFAULT CHARACTER SET = `utf8mb4`;

ORM 管理数据库

# 只有第一次需要使用
python manage.py db init
# 检查 model 是否更新
python manage.py db migrate
# 更新数据库
python manage.py db upgrade

运行

配置相关环境变量

cp seattle/local_config.py.template seattle/local_config.py

运行

python run.py

格式化代码

sh tools/format_python_code.sh

About

A flask project with sqlalchemy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages