GitXplorerGitXplorer
w

todo-app-graphql-engine-auth0

public
10 stars
3 forks
1 issues

Commits

List of commits on branch master.
Verified
c71ae45ad46eb655f1479428bf6bcbd5beaabaf3

Update README.md

wwawhal committed 6 years ago
Verified
506aba0f4ca75dee497981a4fe07f994c3074fda

Update README.md

wwawhal committed 6 years ago
Verified
d1f3049c889f664127bcffe58c3315d944755c46

Merge pull request #1 from coco98/master

wwawhal committed 6 years ago
Unverified
37824d0997555c2da5dc536744b9f974c54d44a5

Improves formatting

ccoco98 committed 6 years ago
Unverified
2015d90ddfc2b1bdfeb5dcba94b402aa3d421377

Update Readme

wwawhal committed 6 years ago
Unverified
48dcbe9982327776d4b61183b2d1faebf0ee0c54

First commit

wwawhal committed 6 years ago

README

The README file for this repository.

Important: This repo has been moved to hasura/graphql-engine

The contents of this repo have been moved to hasura/graphql-engine. Please create all issues and pull requests there.


Todo app using Hasura GraphQL Engine, Heroku Postgres and Auth0

  • STEP 1: Set auth0 domain

    Set your auth0 domain in auth-webhook/constants.js. Also allow callbacks for http://localhost:3000/callback in your auth0 dashboard.

  • STEP 2: Deploy the auth Webhook (using ngrok, glitch, heroku or whatever)

    glitch-deploy-button

  • 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.

    Deploy to heroku

  • 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
  • Step 5: Set React app variables

    Set auth0 domain, auth0 client ID and the GraphQL Engine URL in todo-app/src/constants.js

  • Step 6: Run the React app

    Run npm start from the todo-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