https://github.com/hygraph/hygraph-next-commerce-starter
https://github.com/hygraph/hygraph-next-commerce-starter
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hygraph/hygraph-next-commerce-starter
- Owner: hygraph
- Created: 2023-10-03T19:25:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-21T13:10:39.000Z (about 2 years ago)
- Last Synced: 2025-01-11T09:55:51.071Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://hygraph-next-commerce-starter.vercel.app
- Size: 3.89 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hygraph E-commerce starter
This project is a federated content demo for Hygraph. It combines content from a Demo API and Hygraph
## Installation methods
Option 1: One-click Deployment
[](https://app.netlify.com/start/deploy?repository=https://github.com/hygraph/hygraph-next-commerce-starter)
Option 2: Manual clone
1. Clone this repo: ```git clone https://github.com/hygraph/hygraph-next-commerce-starter```
2. Navigate to the directory and run ```npm install```
3. Run ```npm run dev```
4. Manually connect Netlify(using the netlify.toml template) when ready to deploy
## Running the project
The project needs a Hygraph content API endpoint with matching content and schema. Add the endpoint to `.env.local` as `HYGRAPH_ENDPOINT`
1. Copy the `.env.sample` file, add your endpoint and save as `.env.local` in the main project directory
2. Run ```npm run dev```