Skip to content
Rhys Bartels-Waller edited this page Oct 16, 2020 · 6 revisions

Build

Cardano GraphQL Server

nix-build -A cardano-graphql -o nix-build/cardano-graphql

Hasura

Currently the Hasura components are sourced in this repository for convenience.

nix-build -A graphql-engine -o nix-build/graphql-engine
nix-build -A hasura-cli -o nix-build/hasura-cli

Run

In separate consoles:

./nix-build/graphql-engine/bin/graphql-engine \
  --host "localhost" \
  -u "someUsername" \
  --password "somePassword" \
  -d "cexplorer" \
  --port 5432 \
  serve \
  --server-port 8090 \
  --enable-telemetry=false
HASURA_URI=http://localhost:8090 \\
GENESIS_FILE_BYRON=./config/network/mainnet/genesis/byron.json \\
GENESIS_FILE_SHELLEY=./config/network/mainnet/genesis/shelley.json \\
POSTGRES_DB=cexplorer \\
POSTGRES_HOST=localhost \\
POSTGRES_PASSWORD=somePassword \\
POSTGRES_PORT=5432 \\
POSTGRES_USER=someUsername \\
./nix-build/cardano-graphql/bin/cardano-graphql