Skip to content

Installing and Running

bvpav edited this page Apr 17, 2021 · 1 revision

Installing

You will need Python 3.7 or later to install the package and its dependencies.

It is recommended that you install everything in a virtual environment, using:

Linux

$ python -m venv venv
$ . venv/bin/activate
(venv) $ pip install --editable .
(venv) $ export FLASK_APP=ecospace
(venv) $ export FLASK_ENV=development
(venv) $ flask db upgrade

Windows

python -m venv venv
.\venv\Scripts\activate.bat
(venv) pip install --editable .
(venv) set FLASK_APP=ecospace
(venv) set FLASK_ENV=development
(venv) flask db upgrade

If all goes well, you can move on to the next section.

Running

Linux

(venv) $ export FLASK_APP=ecospace
(venv) $ export FLASK_ENV=development
(venv) $ flask run

Windows

(venv) set FLASK_APP=ecospace
(venv) set FLASK_ENV=development
(venv) flask run

Clone this wiki locally