Skip to content

Building

Rhys Bartels-Waller edited this page Oct 16, 2020 · 12 revisions

Yarn

The project is composed of multiple packages, and uses Yarn Workspaces to centrally manage development dependencies via an offline cache.

git clone --branch {VERSION_TAG} https://github.com/input-output-hk/cardano-graphql.git
cd cardano-graphql
yarn --offline --frozen-lockfile && yarn build

HASURA_URI=http://localhost:8080 node ./packages/server/dist/index.js

Nix

Cardano GraphQL Server

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

./nix-build/cardano-graphql/bin/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/graphql-engine/bin/graphql-engine

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

./nix-build/hasura-cli-bin/bin/hasura