Skip to content
A simple shopping cart example leveraging relay & GraphQL with routing and pagination.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
data
js
public
scripts
tasks
.babelrc
.editorconfig
.eslintrc
.gitignore
README.md
graphql.config.json
graphql.schema.json
gulpfile.babel.js
logger.js
package.json
postcss.config.js
server.js
webpack.dev.config.js

README.md

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.76.218.113/relay-cart/demo.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
You can’t perform that action at this time.