This is the sample music playlist application demonstrating the Gatsby + Contentful Remote Join with Hasura GraphQL.
If you've cloned this repository, navigate into the directory and install the npm modules using this command:
Note: if you clone this project through the Gatsby CLI, it will install the modules for you.
This application uses Auth0 to manage identity. Refer to the Auth0 integration guide for the configuration.
Modify auth config
.env.production) and replace
AUTH0_CLIENTID with your Auth0 domain prefix and your client ID. These can be found on your client dashboard.
AUTH0_CALLBACK with the URL for your callback route. The default for development is
Contentful remote schema is added as part of the migration. Configure the environment variables in Hasura GraphQL Engine server for the types to get merged.
CONTENTFUL_API_ENDPOINTwhich is of the format https://graphql.contentful.com/content/v1/spaces/
Execute the following command inside
hasura to apply the migrations
hasura migrate apply
This will create all the necessary tables, relationships and remote joins.
Run the app
You can start the development server with the following command:
The app runs at
localhost:8000 by default.