- Creates a folder called as the argument
app_name
in thepath
provided - Creates a python virtual environment in that path
- Installs Flask in the virtual env
- Creates a boilerplate application
- Creates gitignore
- Creates a bootstrap script that automatically activates the virtual environment and runs the app when executed
- Can also create a requirements.txt file if the parameter
--package
is passed
- Python3
- Download the file to your linux computer (might work for mac)
- Add
execute
permissions by runningchmod +x flask_init.sh
./flask_init.sh --app_name myApp --path /opt/flask_examples
./flask_init.sh --app_name myApp --path /opt/flask_examples --package