This repository contains the External Search Provider. It connects Elasticsearch to the rest of the SCD registry. This repository contains submodules. Thus, users should clone this repository by running:
git clone --recurse-submodules -j8 https://github.com/TIHBS/scd-registry-external-search-provider.git
Or after cloning, it users should run:
git submodule update --init --recursive
- npm
- node
- docker
- docker-compose
To build the project:
npm i
npm run build
Before starting set the following environment variables:
SWARM_API=<url-to-swarm-api>
ELASTICSEARCH_URL=<url-to-elasticsearch>
NETWORKISH=<networkish-of-registry-contract>
REGISTRY_ADDRESS=<address-of-the-registry-contract>
To start the External Search Provider run:
npm start
To start it with docker and Elasticsearch run:
docker-compose up
To test the project run:
npm test