This package has been deprecated

Author message:

This package has been deprecated, please use @cheapreats/sdk instead.

cheapreats-node-sdk

1.1.18 • Public • Published

CheaprEats Node.js SDK

CircleCI

CheaprEats Node.js SDK

For detailed documentation, please visit https://cheapreats.com/developer/docs/

Project Structure

Some important files are outlined below, for detailed information, please refer to full API documentation.

app/
├── adaptors/                               # Network adaptors
|   └── CheaprEatsApolloAdaptor.js          # Adaptor for CheaprEats GraphQL API
├── controllers/                            # Controllers
├── factories/                              # Factories
├── links/                                  # Network links, used by adaptors
|   └── synchronouslinks/
|       └── ApolloLink.js                   # Network link for Apollo GraphQL server
├── models/                                 # Models
├── observers/                              # Observers, mainly used by App
|   └── ModelObserver.js                    # Observes Model
├── utilities/                              # Anything else
├── App.js                                  # Primary entry point

Structure

Adaptors are used to control Links, Links are used to send requests to server.

Models are class representation of API resources.

Factory is used to make Models. App is the main controller.

Get Started

If you are using ES6 import, simply do:

import CE from './index'

If you are using CommonJS modules, do:

const CE = require('./index');

If you are using browser, link to ce.js, it will automatically populate window.CE.

<script src="build/ce.js"></script>

Readme

Keywords

none

Package Sidebar

Install

npm i cheapreats-node-sdk

Weekly Downloads

2

Version

1.1.18

License

MIT

Unpacked Size

2.58 MB

Total Files

220

Last publish

Collaborators

  • junthehacker