Skip to content
Python 后端开发框架模板,以后就不用每次都复制粘贴了
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
controllers fix decorator Apr 10, 2019
migrations init Apr 9, 2019
models
.gitignore init Apr 9, 2019
README.md it's prepared for Python 3 Apr 9, 2019
alembic.ini init Apr 9, 2019
config.py init Apr 9, 2019
gunicorn_config.py init Apr 9, 2019
main.py set a ping-pong service for health check Apr 9, 2019
requirements.txt add dependency Apr 10, 2019
revision.sh init Apr 9, 2019

README.md

Python3 后端开发框架模板

  • Flask
  • SQLAlchemy
  • Marshamallow
# 可以使用MySQL,把URI改掉,并且更改 requirements.txt里的驱动即可
$ export SQLALCHEMY_DB_URI='postgresql+psycopg2://<用户>:<密码>@<地址>/<数据库>'
$ ./revision.sh init  # 生成第一个数据库migration

用法:

$ git clone git@github.com:jiajunhuang/pytemplate.git repo # 克隆本仓库
$ cd repo  # 进入代码
$ rm -rf .git  # 删除原本git信息
$ git init  # 重新初始化仓库

然后就可以开始开发了

You can’t perform that action at this time.