mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
Issue 92 readme improvements (#93)
* adding testing section to readme * updating barge instructions * removing subgraph from commit
This commit is contained in:
parent
f42abe3350
commit
3d7526a282
17
README.md
17
README.md
@ -11,6 +11,7 @@
|
||||
- [🧶 Example Queries](#-example-queries)
|
||||
- [🦑 Development](#-development)
|
||||
- [🦑 Development on barge](#-development-on-barge)
|
||||
- [🧪 Testing](#-testing)
|
||||
- [✨ Code Style](#-code-style)
|
||||
- [🛳 Releases](#️-releases)
|
||||
- [⬆️ Deployment](#️-deployment)
|
||||
@ -106,11 +107,15 @@ You now have a local graph-node running and can start deploying your changes to
|
||||
|
||||
## 🦑 Development on Barge
|
||||
|
||||
Run barge in another terminal
|
||||
Clone (barge)[https://github.com/oceanprotocol/barge] and run it in another terminal:
|
||||
```bash
|
||||
git clone https://github.com/oceanprotocol/barge.git
|
||||
cd barge
|
||||
./start_ocean.sh --with-thegraph
|
||||
```
|
||||
|
||||
If you have cloned Barge previously, make sure you are using the latest version by running `git pull`.
|
||||
|
||||
Clone the repo and install dependencies:
|
||||
|
||||
```bash
|
||||
@ -133,6 +138,16 @@ npm run deploy:local-barge
|
||||
|
||||
You now have a local graph-node running on http://localhost:9000
|
||||
|
||||
## 🧪 Testing
|
||||
|
||||
- Please note: the `npm run test` command is currently not working due to (this issue)[https://github.com/graphprotocol/graph-ts/issues/113].
|
||||
|
||||
To run the integration tests locally, first start up barge by following the instructions above, then run the following terminal commands from the ocean-subgraph folder:
|
||||
|
||||
```Bash
|
||||
export ADDRESS_FILE="${HOME}/.ocean/ocean-contracts/artifacts/address.json"
|
||||
npm run test-integration
|
||||
```
|
||||
|
||||
## ✨ Code Style
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user