Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Latest commit

 

History

History
36 lines (22 loc) · 1.03 KB

README.md

File metadata and controls

36 lines (22 loc) · 1.03 KB

Discovery Server

The discovery server provides searching and content moderation features.

Configuration ENV variables

MODERATOR_ADDRESSES - a comma sperated (no space), list of ETH addresses that can perform moderation actions.

To start the Apollo GraphQL server

You can start the listener using either docker compose or lerna.

Docker compose

Start the origin-discovery container.

docker-compose up origin-discovery

Lerna

Prerequisite

  • Setup Postgres locally.
  • Run migration scripts to create the schema lerna run migrate --scope origin-discovery
  • Install Elasticsearch locally.
  • Create the Elasticsearch schema node infra/discovery/devops/es-cli.js createIndex listings

Starting the server

export DATABASE_URL=postgres://origin:origin@localhost/origin
export ELASTICSEARCH_HOST=localhost:9200
lerna run start:discovery --scope origin-discovery --stream

The server should start and you can now point your browser to http://localhost:4000/graphql to access the GraphQL playground.