Skip to content

Running the Project

Jeb edited this page Apr 10, 2018 · 2 revisions

This project requires that a Flask server be run within a Python virtual environment.

Setup

Instructions for running on macOS and through PyCharm.

macOS

Get an installation of Flask and venv. Activate the virtual environment ($ source venv/bin/activate), and then install all the required packages (listed in the readme at the root of the project). Then set the FLASK_APP environment variable ($ export FLASK_APP=server.py). Now run with $ flask run.

PyCharm

PyCharm should be able to automatically create a virtual environment for the project. The Python interpreter should be for version 3.6. Install all the required packages into this installation. Then make sure that the environment variables for the configuration of server.py includes the field "FLASK_APP: server.py". Running server.py should now run the Flask server.

Clone this wiki locally