Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soonlive/relay-cart

A simple shopping cart example leveraging relay & GraphQL with routing and pagination.
https://github.com/soonlive/relay-cart

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

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

## Usage
clone this repo and run:

```shell
npm install
npm start
```
and then visit [http://localhost:3000/](http://localhost:3000/)

## Demo

View a demo here: [http://120.76.218.113/relay-cart/demo.html](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:

```shell
npm run updateSchema
npm start
```