Query API services for 12 Labours App
This is the API service providing query and data requests for the 12 Labours projects. This is currently implemented using fastapi.
Make sure you have python 3 installed python3 --version
python3 -m venv ./venv
. ./venv/bin/activate
pip install -r requirements.txt
uvicorn main:app
If you do not have the 12 Labours portal user environment variables setup already:
- Create a .env file with the configuration variables of the 12 Labours portal user or add them to your bash profile.
- If you created a separate file, run source {fileName}.env.
After the previous steps or if you already have those environment variables setup, run:
export PYTHONPATH=`pwd`
pip install -r requirements-dev.txt
pytest