Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesyoung committed Feb 14, 2019
1 parent 5866c54 commit ea83f5f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,24 @@ with :
NOTE: every time ganache-cli is restarted, the name of the network (dev in this reference) needs to be changed with a new name
3. run `docker-compose up`


**run subgraph**
**create subgraph**
1. open new terminal window
2. clone https://github.com/MolochVentures/moloch-monorepo
3. go to moloch-monorepo/packages/moloch-subgraph,
3. go to moloch-monorepo/packages/moloch-subgraph
4. run `npm install`
5. run `graph create moloch --node http://127.0.0.1:8020`
6. run `yarn codegen`
7. run `graph deploy moloch --debug --ipfs http://localhost:5001/ --node http://127.0.0.1:8020`

**run truffle tests to populate graph and update contract address**
1. run `truffle test test/single.js`

**run subgraph**
1. run `yarn codegen`
2. go to moloch-monorepo/packages/moloch-subgraph/subgraph.yaml
3. update dataSources.source.address with output from running test. You should see something like this "moloch.address 0x9463308d1C9032cC464E395e54E55EDA77495c00". cut and paste the address, "0x9463308d1C9032cC464E395e54E55EDA77495c00" in this example.
4. run `graph deploy moloch --debug --ipfs http://localhost:5001/ --node http://127.0.0.1:8020`

**run front-end**
1. open new terminal window
2. go to moloch-monorepo/packages/moloch-frontend
3. npm install
4. npm start
4. npm start

0 comments on commit ea83f5f

Please sign in to comment.