alexhawkins / relay-cart

A simple shopping cart example leveraging relay & GraphQL with routing and pagination.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

relay-cart

A simple shopping cart example leveraging relay & GraphQL with routing and pagination

Usage

clone this repo and run:

npm install
npm start

and then visit http://localhost:3000/

Demo

View a demo here: http://120.25.224.120/relay-cart.html. Add items to the cart and change the quantities.

Developing

Any changes to files in the 'js' directory the server to automatically rebuild the app and refresh your browser. If at any time you make changes to data/schema.js, stop the server, regenerate data/schema.json, and restart the server:

npm run updateSchema
npm start

About

A simple shopping cart example leveraging relay & GraphQL with routing and pagination.


Languages

Language:JavaScript 79.8%Language:HTML 11.1%Language:CSS 9.1%