This package contains the source code for the Unlock Protocol Subgraph, a project for indexing and querying Unlock Protocol data from the Ethereum blockchain using The Graph.
The quickest way to run a Graph Node locally is to use the graph-node docker image.
- Install Docker and Docker Compose
- In the root of this project run
docker-compose up
This command will look for the docker-compose.yml
file and automatically provision a server with rust, postgres, and ipfs, and
spin up a graph node with a GraphiQL interface at http://127.0.0.1:8000/
.
You are now ready to build and deploy the Unlock Protocol subgraph.
Next run:
npm run codegen
npm run deploy