UTSProctor is a Flask API for handling user authentication and proctoring functionality.
Use the package manager pip to install all dependencies required for development using the requirements.txt
file in the project's root folder:
pip install -r requirements.txt
Download db_link.txt from 41096_SPR_Wednesday/W12/Files and place in proctor-api/proctorapi
It is already included in .gitignore but please be mindful and DO NOT commit this file to a public github repo.
Execute the following bash command from the project root folder to start the API server on localhost:5000/api/
. Note you need to have Python and all dependencies installed first.
python appserver.py
The deskcheck endpoint requires ODAPI to be set up and running (refer to its README for more instructions).
Create an initial migration file to translate the classes in models.py to SQL that will generate corresponding tables
python manage.py db migrate
Run the migration to upgrade the database with the tables described in the prior step
python manage.py db upgrade
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.