Skip to content

Commit b92460a

Browse files
committed
update readme
1 parent 6cf3847 commit b92460a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,25 @@ Staging triggers a build on [staging cloudbuild](https://console.cloud.google.co
1111
Production triggers a build on (https://console.cloud.google.com/cloud-build/builds?project=onegraph-dashboard) on pushes to master and deploys to prod firebase hosting/cloud run.
1212

1313
Check the cloudbuild-staging.yaml, cloudbuild.yaml, and Dockerfile for implementation details.
14+
15+
### Developing locally
16+
17+
Install dependencies
18+
19+
```
20+
yarn install
21+
yarn dev
22+
```
23+
24+
If you need to change one of the queries
25+
26+
Go to [the Server-Side auth page for the OneGraph changelog app](https://www.onegraph.com/dashboard/app/570a3d6b-6ff3-4b7a-9b0d-fe4cf6384388/auth/server-side) and get a personal token with access to GitHub.
27+
28+
Go to [the Persisted queries page for the OneGraph changelog app](https://www.onegraph.com/dashboard/app/570a3d6b-6ff3-4b7a-9b0d-fe4cf6384388/persisted-queries) and get a dashboard access token to persist queries.
29+
30+
Create a `.env` file with the following
31+
32+
```
33+
OG_GITHUB_TOKEN="YOUR_SERVER_SIDE_AUTH_TOKEN"
34+
OG_DASHBOARD_ACCESS_TOKEN="YOUR_TOKEN_TO_PERSIST_QUERIES"
35+
```

0 commit comments

Comments
 (0)