Awesome TangoMan Flask Boilerplate is a fast and handy tool to manage your Flask application with virtualenv easily
TangoMan Flask Boilerplate provides the following features:
- Install Python
- Deploy Flask app locally
- Deploy Flask app in Virtualenv
$ make up
TangoMan Flask Boilerplate requires the following dependencies:
- Make
On linux machine enter following command
$ sudo apt-get install -y make
On windows machine you will need to install cygwin or GnuWin make first to execute make script.
Run make
to print help
$ make [command] filename=[filename] port=[port] virtualenv=[virtualenv]
Valid commands are: help install run freeze dev-install check-install up serve stop venv-run venv-create venv-start venv-stop venv-install venv-remove venv-up venv-serve venv-kill
$ make help
Print this help
$ make install
Install
$ make run
Start app
$ make freeze
Generate requirements.txt
$ make dev-install
Install development environment (python, pip, virtualenv)
$ make check-install
Check correct python environment installation
$ make up
Deploy and start Flask app locally with one command
$ make serve
Open default browser Serve app with gunicorn at localhost
$ make stop
Kill gunicorn server
$ make venv-run
Start
$ make venv-create
Create virtualenv
$ make venv-start
Activate virtualenv
$ make venv-stop
Deactivate virtualenv
$ make venv-install
Install in virtualenv
$ make venv-remove
Remove virtualenv
$ make venv-up
Deploy and start your Flask app in fresh virtualenv with one command
$ make venv-serve
Serve app with gunicorn from virtualenv
$ make venv-kill
Kill gunicorn server and remove virtualenv
Copyrights (c) 2020 "Matthias Morin" <mat@tangoman.io>
Distributed under the MIT license.
If you like TangoMan Flask Boilerplate please star, follow or tweet:
... And check my other cool projects.