autogenerate boilerplate code for a flask app
-
Generate a basic Flask app with:
- app.py
- config.py
- static folder
- templates folder
- README.md
- Makefile
- setup.py
- requirements.txt
- .gitignore
and optional extras including:
- Test suite(tox, pytest)
- Docker
- Heroku
- Job Scheduler
- Flask-Login
- Flask-Admin
- Flask-WTF
- Vue.js(CDN version)
- jQuery
- Sass
- Bootstrap
- SQLite(Flask-SQLAlchemy)
- MongoDB(Flask-PyMongo)
-
Automatically install pip dependencies in a venv
-
Makefile with useful commands(starting server, lint code, test code)
pip install new-flask-app
to install thecreate-flask-app
console script- run
create-flask-app
- after selecting extras,
cd
into the new directory andmake start
to start flask server - done!
OR
For development:
make install
source .env/bin/activate
create-flask-app
orpython create_flask_app.py