Skip to content

nexm-io/hackathon-thegraph

Repository files navigation

Hackathon Thegraph

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js and npm (or yarn)
  • Graph CLI
  • Run graph-node on locally

Installation

Clone the Repository:

git clone https://github.com/nexm-io/hackathon-thegraph.git
cd hackathon-thegraph

Install Dependencies:

npm install
# or
yarn install

Running the Subgraph Locally

Generate Code:

yarn codegen

Build the Subgraph:

yarn build

Create the Subgraph:

graph create --node http://127.0.0.1:8020 <SUBGRAPH_NAME>

Deploy the Subgraph:

graph deploy <SUBGRAPH_NAME> --ipfs http://localhost:5001 --node http://127.0.0.1:8020

Deploying to The Graph Hosted Service

1. Authenticate:

graph auth --studio <YOUR_DEPLOY_KEY>

2. Deploy:

graph deploy --studio <SUBGRAPH_SLUG>

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published