The discovery server provides searching and content moderation features.
MODERATOR_ADDRESSES
- a comma sperated (no space), list of ETH addresses that can perform moderation actions.
You can start the listener using either docker compose or lerna.
Start the origin-discovery container.
docker-compose up origin-discovery
- 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
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.