Skip to content

nathanwaters/hasura-cloudflare-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hasura Cloudflare Worker

Example Cloudflare Worker using Facebook-based authorization and GraphQL proxy queries with Hasura.

Prerequisites

  1. Cloudflare account with Workers enabled ($5/mth minimum).
  2. Hasura GraphQL endpoint setup with person table, auth webhook (for GQL subscriptions) and permissions set on the fb_id plus a user role column.

Install

  1. Add config variables in .env
  2. Run npm install
  3. Run npm run build
  4. Copy dist/worker.js code into Cloudflare Worker web UI
  5. Save and test with Insomnia

About

Example Cloudflare Worker for Facebook-based authorization and GraphQL proxy queries with Hasura

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published