This API is currently used by the following frontend project:
Requirements:
- Python 3
- Install All Python Dependencies
$ pip install -r requirements.txt
Setup corresponding SQL database following /db_setup/setup_sql_db.sql
to test the server in local.
# MongoDB settings
Mongo_User=<mongo_username>
Mongo_Password=<mongo_password>
Mongo_DBName=<mongo_db_name>
Mongo_Postfix=<mongo_post_fix>
# Okta settings
okta_issuer=<okta_issuer_domain>
okta_client_id=<okta_client_id>
# SQL settings
sql_host=<sql_host>
sql_port=<sql_port>
sql_user=<sql_user>
sql_password=<sql_password>
sql_db_name=<sql_db_name>
$ flask run
$ pytest
Please use Black to format your code automatically.
$ pip install black
$ black .