Make sure you have python (3) installed, then setup up a virtual environment:
$ python -m venv env
Activate the virtual environment:
$ . env/bin/activate
Install the dependencies with pip
:
$ pip install -r requirements.txt
You can run the app either via the wsgi.py
as Flask app, or set the create_app config yourself.
With wsgi.py:
$ export APP_ENV=Dev
$ export FLASK_APP=wsgi.py
$ export FLASK_ENV=Development
$ flask run
or, directly:
$ export FLASK_APP='app:create_app("app.config.Dev")'
$ flask run