Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/soonlive/relay-cart
- Owner: soonlive
- Created: 2016-03-02T08:35:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T14:08:12.000Z (over 7 years ago)
- Last Synced: 2024-08-01T22:51:35.195Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 79.1 KB
- Stars: 18
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-graphql - relay-cart - A simple shopping cart example leveraging relay & GraphQL with routing and pagination. (Examples / JavaScript Examples)
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
```