sudo apt-get install libsecret-1-dev
subgraph.yaml(if needed and ensure the correct file is named according to the network of deployment - for ganache it should read as mainnet: backup the current
subgraph.yamlfile and rename it to
cd docker && docker-compose up. If using Docker for WSL, Docker must be running on Windows. If graph-node throws an error try clearing the
data/postgresfolder, within the docker directory of graph-node, with
sudo rm -rf data/postgres. Restart docker if needed.
yarn codegen, then create and deploy the subgraph to the graph-node with
yarn create-local && yarn deploy-local