mirror of
https://github.com/anonklub/anonklub.git
synced 2026-01-11 02:47:55 -05:00
Query API
Develop
-
Authenticate requests
Data Provider Register/Get Credentials For node script BigQuery Define Google Service Account and export google credentials in a .key.jsonfileecho "GOOGLE_CLOUD_PROJECT=your-project-id\GOOGLE_APPLICATION_CREDENTIALS='$(cat .key.json)'" > .envDune Analytics Create Dune Account echo "DUNE_API_KEY=yourduneapikey" >> .envThe Graph Subgraph Studio echo "GRAPH_API_KEY=yourapikey" >> .env -
Source
.envfile:source .env -
Start
- node script
pnpm i pnpm start.dev
- node script
The Graph
In case new queries are added or existing ones are updated, re-create the artifacts with:
pnpm build.graph
Deploy
Automatic with deploy-*.yml GitHub workflows
Or manually
Install [`flyctl`](https://fly.io/docs/flyctl/installing/).
flyctl deploy \
--config apis/query/fly-staging.toml \
--dockerfile apis/query/Dockerfile \
--remote-only