TopGit tracks barry-ran/flask-scaffolding on GitHub. The project has 28 stars. flask项目脚手架,可以基于此脚手架快速开发,减少重复操作
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
docker exec -it mysql5.7 bash
mysql -uroot -pmysql123465
use mysql;
grant all privileges on *.* to werobot@'%' identified by "mysql123465";
flush privileges;
创建数据库
create database werobot;
初始化数据库
使用Flask-Migrate管理数据库
第一次配置开发环境需要先执行以下命令初始化迁移文件,并生成表
# 默认在当前目录生成迁移文件夹migrations,可以通过-d选项来指定不同路径
# 如果设定了其它路径,后续命令都需要使用-d指定路径
flask db init # 第一次初始化数据库升级环境(生成migrations目录,需要提交到代码仓库中纳入版本管理)
flask db migrate -m "Initial migration." # 更新数据库结构到migrations(-m可选)
flask db upgrade # 更新实际数据库(将migrations修改应用到实际数据库中,第一次执行会创建表)
后续开发过程中更改表结构只需要执行以下命令即可更新数据库
flask db migrate
flask db upgrade
部署
基于docker的nginx+gunicorn+supervisor部署:
gunicorn:开启多进程基于gevent为flask提供wsgi服务
nginx:反向代理,高效处理静态资源
supervisor:进程管理,监控并自动重启nginx和gunicorn
安装好docker以后clone下代码来可以一键部署:
# 不带-d,调试用
# docker-compose up
docker-compose up -d
# 也可以直接执行提供的script来部署
./script/compose-deploy.sh
Does barry-ran/flask-scaffolding have a project website?
No homepage URL was recorded for barry-ran/flask-scaffolding in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Does barry-ran/flask-scaffolding have any tags?
TopGit's last sync did not record any GitHub topics for barry-ran/flask-scaffolding. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on barry-ran/flask-scaffolding?
The most recent commit recorded on barry-ran/flask-scaffolding was 5.3 years ago, based on the GitHub push timestamp. The repository has 8 forks — one of the better signals of community interest.
Is barry-ran/flask-scaffolding open source?
Yes — barry-ran/flask-scaffolding ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/barry-ran/flask-scaffolding.
What license does barry-ran/flask-scaffolding use?
barry-ran/flask-scaffolding is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about barry-ran/flask-scaffolding?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/barry-ran/flask-scaffolding is the definitive source.
Read full README in the tab above.
Curious whether flask-scaffolding is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about flask-scaffolding.