-
STEP 1: Set auth0 domain
Set your auth0 domain in
auth-webhook/constants.js
. Also allow callbacks forhttp://localhost:3000/callback
in yourauth0
dashboard. -
STEP 2: Deploy the auth Webhook (using ngrok, glitch, heroku or whatever)
-
STEP 3: Start GraphQL engine with the the auth-hook as the webhook URL and access key of your choice
Deploy GraphQL engine to Heroku if you do not have it deployed anywhere.
-
STEP 4: Apply the migrations
- Add your database URL and access key in
hasura-graphql-engine/config.yaml
- Run
hasura migrate apply
to create the required tables and permissions for the todo app
- Add your database URL and access key in
-
Step 5: Set React app variables
Set
auth0 domain
,auth0 client ID
and theGraphQL Engine URL
intodo-app/src/constants.js
-
Step 6: Run the React app
Run
npm start
from thetodo-app
directory to start the TODO app.THe app runs on port 3000 by default. You can change the port number, but you will also have to reconfigure the callback
forked from wawhal/todo-app-graphql-engine-auth0
-
Notifications
You must be signed in to change notification settings - Fork 0
coco98/todo-app-graphql-engine-auth0
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 85.4%
- HTML 6.7%
- CSS 4.7%
- Shell 1.7%
- Other 1.5%