Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 919 Bytes

DEVELOPMENT.md

File metadata and controls

35 lines (21 loc) · 919 Bytes

Developing the Optimus Prime Database Assessment tool

The tool is comprised of 2 components:

  1. The optimus prime script - the tool that runs on the user's computer
  • This scipt performs the
  1. The optimus prime API
  • This tool loads the

The Optimus Prime API

This api is responsible for uploading the assessment data in the correct format to a BigQuery Dataset.

How to run locally

via Flask locally

  1. pip install -r api-requirements.txt -r requirements.txt
  2. FLASK_ENV=dev FLASK_APP=db_assessment.api:app python -m flask run

via Docker locally

  1. pip install -r build-requirements.txt
  2. invoke build
  3. invoke run

How to test

  1. pip install -r build-requirements.txt
  2. invoke pull-config
  3. invoke test --local --base-url localhost:8080 This will test the api by using the sample/datacollection files to upload to the bigquery dataset via the running api