-
Notifications
You must be signed in to change notification settings - Fork 104
Nix
Rhys Bartels-Waller edited this page May 31, 2022
·
6 revisions
nix-build -A cardano-graphql -o nix-build/cardano-graphql
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
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
CARDANO_NODE_CONFIG_PATH=${PWD}/config/network/mainnet/cardano-node/config.json \
HASURA_CLI_PATH=hasura \
HASURA_GRAPHQL_ENABLE_TELEMETRY=false \
HASURA_URI=http://localhost:8090 \
GENESIS_FILE_BYRON=${PWD}/config/network/mainnet/genesis/byron.json \
GENESIS_FILE_SHELLEY=${PWD}/config/network/mainnet/genesis/shelley.json \
METADATA_SERVER_URI=https://tokens.cardano.org \
OGMIOS_HOST=localhost \
OGMIOS_PORT=1337 \
POSTGRES_DB=cexplorer \
POSTGRES_HOST=localhost \
POSTGRES_PASSWORD=somePassword \
POSTGRES_PORT=5432 \
POSTGRES_USER=someUsername \
./nix-build/cardano-graphql/bin/cardano-graphql