Ergo GraphQL server on top of Ergo Platform's explorer database schema.
This repository also includes a TypeScript package for client-side static typing.
npm install
The .env
file must be placed in the root directory following the pattern described below.
DB_HOST = # database host address
DB_PORT = # database host port
DB_NAME = # database name
DB_USER_NAME = # database user name
DB_USER_PWD = # database user password
DB_SSL = # optional: true or false
ERGO_NODE_ADDRESS = # http ergo node address
REDIS_HOST = localhost # optional: redis host address
REDIS_PORT = 6379 # optional: redis host port
REDIS_USER_NAME = # optional: redis username
REDIS_USER_PWD = # optional: redis user password
MAX_QUERY_DEPTH = 5 # optional: maximum query depth
npm run dev
npm run build
npm run start
npm run test
npm run lint