An example of using Firebase for authentication and Hasura as GraphQL backend together with Svelte.
This might not be best practice. Use at your own peril :D
.env-sample
to .env
and fill in the details based on the snippets from Firebase..firebaserc-sample
to .firebaserc
and update the project name.firebase deploy --only functions
. This will ensure that the correct custom claims are set for Hasura whenever a user is created.hasura/docker-compose.yml
file with the correct project Id.Install dependencies with npm install
(or pnpm install
or yarn
), start a development server:
docker-compose up
under the Hasura folder.hasura console --admin-secret=myadminsecretkey
to start the console for testing.npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open