Skip to content

Instantly share code, notes, and snippets.

@franz-net
franz-net / README.md
Created December 8, 2021 09:10
Bash script to init a Flask App.
View README.md

Flask_init

What does it do?

  • Creates a folder called as the argument app_name in the path 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