Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 959 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 959 Bytes

About

APIs for data, processing functions, algorithms and propagation.

Getting Started

Prerequisites

  • Python 3.8.12
  • MongoDB, Elasticsearch see

Start Development Instance Locally

Update the external services URL in data-api/app/config/default.json, e.g.,

"url": "mongodb://localhost:27017/?directConnection=true",
"host": "http://localhost:9200",

Create Python environment and install dependencies.

pip install virtualenv
virtualenv venv
source ./venv/bin/activate

pip install -r requirements.txt

Start the server in host machine.

uvicorn app.main:app --reload --port 4010 --host 0.0.0.0

API Documentation

The API documentation and testing endpoints are automatically generated in a web page. The documentation interface can be accessed via: http://localhost:4010/docs. The screenshot of the API document page:

The screenshot of the API document page: