graphql-engine/community/sample-apps/gatsby-contentful-auth0/app
2019-07-26 09:12:00 +00:00
..
src community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00
static community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00
.env.EXAMPLE community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00
.gitignore community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00
.prettierrc community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00
gatsby-browser.js community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00
gatsby-config.js community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00
gatsby-node.js community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00
package-lock.json community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00
package.json community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00
README.md community: add gatsby-contentful-auth0 sample app (#2603) 2019-07-26 09:12:00 +00:00

gatsby-contentful-auth0

This is the sample music playlist application demonstrating the Gatsby + Contentful Remote Join with Hasura GraphQL.

Getting started

If you've cloned this repository, navigate into the directory and install the npm modules using this command:

npm install

Note: if you clone this project through the Gatsby CLI, it will install the modules for you.

Modify auth config

Rename .env.EXAMPLE to .env.development (or .env.production) and replace <value> for AUTH0_DOMAIN and AUTH0_CLIENTID with your Auth0 domain prefix and your client ID. These can be found on your client dashboard.

Replace the <value> for AUTH0_CALLBACK with the URL for your callback route. The default for development is http://localhost:8000/callback.

Run the app

You can start the development server with the following command:

gatsby develop

The app runs at localhost:8000 by default.