/

hasura-header-illustration

Ecommerce App

A ecommerce schema example from the Hasura Super App.

To run the fullstack example please see the Github repository.

Setting enviroment Variables

You'll need the following environment variables in your Hasura instance, for a real project you'd use your own admin/JWT secret.

NEXTJS_SERVER_URL: <Your nextjs URL>
HASURA_GRAPHQL_ADMIN_SECRET: <admin secret>
HASURA_GRAPHQL_JWT_SECRET: '<JWT secret>'
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: anonymous

Importing the data schema

You can use the one-click to deploy on Hasura Cloud to get started quickly

Deploy to Hasura Cloud

Open a terminal in the Hasura directory. Now we apply the migrations, metadata, and seeds.

hasura migrate apply --endpoint <Remote Hasura URL if applicable> --admin-secret <admin secret> --database-name default

hasura metadata apply --endpoint <Remote Hasura URL> --admin-secret <admin secret>

hasura seeds apply --endpoint <Remote Hasura URL if applicable> --admin-secret <admin secret> --database-name default

Submit a new integration

right-arrow
hasura-hub-icon
About Ecommerce App
An ecommerce model from the Hasura Super App
Share
About Ecommerce App
An ecommerce model from the Hasura Super App
Share