A simple currency converter project
-
virtualenv (venv for python3 and above)
Create virtual env (let env = filename)
python -m venv env
Activate venv (virtual env is required to run Flask app)
Unix
source env/bin/activate
Windows
.\env\Scripts\activate
-
package dependencies (pip requirements)
pip install -r requirements.txt
-
$ export FLASK_ENV=development $ flask run
(On Windows you need to use set instead of export.)
In the event that the above doesn't work for Windows' users, try the following with Powershell
$ env:FLASK_ENV = "development"
flask run