Skip to content

yfen955/12-labours-api

 
 

Repository files navigation

12-labours-api

Query API services for 12 Labours App

Overview

This is the API service providing query and data requests for the 12 Labours projects. This is currently implemented using fastapi.

Requirements

Python 3.6 or above

Make sure you have python 3 installed python3 --version

Running the app

python3 -m venv ./venv
. ./venv/bin/activate
pip install -r requirements.txt
uvicorn main:app

Testing

If you do not have the 12 Labours portal user environment variables setup already:

  1. Create a .env file with the configuration variables of the 12 Labours portal user or add them to your bash profile.
  2. 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

About

API for 12 Labours App

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Procfile 0.2%