Boilerplate to create the skeleton of a Flask app!
- Python
- Flask
GitHub:
$ git clone https://github.com/dazcona/flaskerizer
$ mv flaskerizer my-project && cd my-project && rm -rf .git/
Manual:
$ mkdir -p my-project && cd my-project
$ touch .env .flaskenv .gitignore README.md requirements.txt
$ mkdir -p src && cd src && mkdir templates static && cd static && mkdir css js
- Creation of a virtual environments done by executing the command venv
- Command to activate virtual environment
- Install dependencies
- List the libraries installed on your environment
- Do your work!
- When you are done, the command to deactivate virtual environment
$ python3 -m venv env/
$ source env/bin/activate
(env) $ pip install -r requirements.txt
(env) $ pip freeze
(env) $ ...
(env) $ deactivate