This is the repository for Lab 4 (Week 6) of COMPSCI 235 at the University of Auckland.
Further description and instructions for the lab can be found on the canvas page.
Installation via requirements.txt
$ cd COMPSCI-235
$ py -3 -m venv venv
$ venv\Scripts\activate
$ pip install -r requirements.txt
Installation via requirements.txt(For macOS/Linux)
$ cd COMPSCI-235
$ python3 -m venv venv
$ . venv/bin/activate
$ pip3 install -r requirements.txt
When using PyCharm, set the virtual environment using 'File'->'Settings' and select 'Project:COMPSCI-235' from the left menu. Select 'Project Interpreter', click on the gearwheel button and select 'Add'. Click the 'Existing environment' radio button to select the virtual environment.
Running the application
From the COMPSCI-235 directory, and within the activated virtual environment (see venv\Scripts\activate above):
$ flask run
The homepage can be accessed from a Web browser: