Infrastructure APIs: authentication, user management, ontology operations, data service, etc.
- Node version 16.13.0
- External services- MongoDB, Elasticsearch see
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
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:
The documentation work is ongoing and we will complete it soon.
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"
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