kmchmk / SimplestGameEver

This is the simplest game possible. There is a button. One click gives you one point. Whoever gets the most points wins.
https://kmchmk.github.io/SimplestGameEver/
MIT License
0 stars 0 forks source link

Link Angular FE to Hasura #18

Open kmchmk opened 2 years ago

kmchmk commented 2 years ago

Link the FE created in #17 to Hasura. Use the following tutorial: https://hasura.io/learn/graphql/angular-apollo/apollo-client/

Use admin secret directly like this: headers: { "x-hasura-admin-secret": HASURA_ADMIN_SECRET, },

Hasura GraphQL URL: https://simplest-game-ever.hasura.app/v1/graphql Hasura console: https://cloud.hasura.io/project/00d2b353-ae80-4248-ba8a-1abaef0be8fe/console/data/simplestgameever/schema/public/tables/player/browse

kmchmk commented 2 years ago

Found this tutorial: https://apollo-angular.com/docs/get-started/

Example code: https://stackblitz.com/edit/basic-apollo-angular-app