Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.64 KB

README.md

File metadata and controls

61 lines (41 loc) · 1.64 KB

About

Infrastructure APIs: authentication, user management, ontology operations, data service, etc.

Getting Started

Prerequisites

  • Node version 16.13.0
  • External services- MongoDB, Elasticsearch see

Start Development Instance Locally

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

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

Install dependencies and start services.

yarn install
yarn dev

API Documentation

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

The documentation work is ongoing and we will complete it soon.

Thumbnail and Index Services

Thumbnail Generator

This service generates thumbnail of the pages registered (propagated) to the ontology.

# in Linux/MAC
npx ts-node ./thumbnail-generator/main.ts --url "http://localhost:3000/page?id=" --target "file" --el "#charts"

# in Windows
npx ts-node .\thumbnail-generator\main.ts --url "http://localhost:3000/page?id=" --target "file" --el "#charts"

Search Indexer

This service index the ontology data into a search engine.

# in Linux
./search-indexer/linux-amd64/monstache -f ./search-indexer/monstache.dev.toml
# in MAC
./search-indexer/darwin-amd64/monstache -f ./search-indexer/monstache.dev.toml
# in Windows
.\search-indexer\windows-amd64\monstache.exe -f .\search-indexer\monstache.dev.toml