Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update readme
  • Loading branch information
dwwoelfel committed Feb 9, 2021
commit be9429312f0e1574150f3eaf5b99140943d49d1c
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,25 @@ Staging triggers a build on [staging cloudbuild](https://console.cloud.google.co
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.

Check the cloudbuild-staging.yaml, cloudbuild.yaml, and Dockerfile for implementation details.

### Developing locally

Install dependencies

```
yarn install
yarn dev
```

If you need to change one of the queries

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.

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.

Create a `.env` file with the following

```
OG_GITHUB_TOKEN="YOUR_SERVER_SIDE_AUTH_TOKEN"
OG_DASHBOARD_ACCESS_TOKEN="YOUR_TOKEN_TO_PERSIST_QUERIES"
```