This project is a federated content demo for Hygraph. It combines content from a Demo API and Hygraph
Option 1: One-click Deployment
Option 2: Manual clone
- Clone this repo:
git clone https://github.com/hygraph/hygraph-next-commerce-starter
- Navigate to the directory and run
npm install
- Run
npm run dev
- Manually connect Netlify(using the netlify.toml template) when ready to deploy
The project needs a Hygraph content API endpoint with matching content and schema. Add the endpoint to .env.local
as HYGRAPH_ENDPOINT
- Copy the
.env.sample
file, add your endpoint and save as.env.local
in the main project directory - Run
npm run dev