Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brob/simon-hygraph-demo
https://github.com/brob/simon-hygraph-demo
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/brob/simon-hygraph-demo
- Owner: brob
- Created: 2024-09-16T19:43:51.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T20:05:00.000Z (4 months ago)
- Last Synced: 2024-11-07T00:28:46.458Z (about 2 months ago)
- Language: JavaScript
- Size: 3.79 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
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
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](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```