Skip to content

Building

Rhys Bartels-Waller edited this page Jul 15, 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

nix-build -A cardano-graphql

Hasura

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

nix-build -A graphql-engine

/nix/store/{PATH}-graphql-engine-x.x.x/bin/graphql-engine

nix-build -A hasura-cli

/nix/store/{PATH}-hasura-cli-x.x.x-bin/bin/hasura