artnonmous-subgraph/: Holds the subgraph for thegraph.com's enginegraph-node-container/: Custom scripts and runtime configuration (in docker) to run the graph-node-container locallysrc/: Holds the front-end web application source codecontracts/: Holds the solidity contracts that run the backbone of the application
http://artonomous-ethberlin.s3-website-us-east-1.amazonaws.com/
- To develop the frontend:
docker-compose upin the root directory - To build the frontend:
yarn build. - To build the graph-node-container dep containers:
cd graph-node-container && docker-compose
- To generate the ipfs
- First, the graph-node-container cluster needs to be running, or at least IPFS
- Second,
node genAbi.jsneeds to be run from the root directory if any of the solidity contracts are changed, after they have been compiled tobuild/ - Third,
yarn build-ipfsbuilds the subgraph code from the yaml manifest and the graphql and bootstrap typescript files into a ipfs hash, which is printed upon completion. This hash is needed to run the graph-node-container.
- To run the
graph-node-container, with the docker images for postgres and ipfs running, run./run.sh IPFS_SUBGRAPH_HASHwhich starts the server on localhost:8000. - Finally, the frontend graphql server can be configured in
src/apollo.jsand the ipfs endpoint insrc/fsapi.js.