Skip to content

TIHBS/scd-registry-external-search-provider

Repository files navigation

External Search Provider

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

Requirements

  • npm
  • node
  • docker
  • docker-compose

Build

To build the project:

npm i
npm run build

Start

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

Test

To test the project run:

npm test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published