- Clone this repository:
$ git clone https://github.com/pyta-uoft/pyta-server.git
. - Go into the project directory:
$ cd pyta-server
. - Install the package dependencies:
$ python -m pip install -e .
. - Install PostgreSQL, and set the environment variables
POSTGRES_URL
,POSTGRES_USER
,POSTGRES_PW
,POSTGRES_DB
relative to your server credentials. - Set the
FLASK_APP
environment variable:$ export FLASK_APP=pyta_server
(on OSX/Unix) or$ set FLASK_APP=pyta_server
(on Windows). - Run
flask
:$ flask run
. - In a web browser, enter
127.0.0.1:5000
into the address bar.