βš›οΈ GraphQL + Moltin + GraphQL Yoga 🧘
Branch: master
Clone or download
ynnoj feat: Checkout flow (#9)
* Initial brands dataloader

* chore: Remove lodash dep

* fix: Make cart id a required argument

* feat: addToCart mutation

* feat: cartCheckout schema, mutation

* fix: Remove unnecessary awaits

* feat: stripeTokenPayment mutation for orders

* style: Removing log

* feat: Return order, order items on payment success
Latest commit 3bf1261 Feb 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src feat: Checkout flow (#9) Feb 13, 2019
.gitignore Initial files for CQL - Matt demo Feb 7, 2018
.graphqlconfig.yml Added Playground dev script Feb 26, 2018
.tool-versions
LICENSE Add LICENSE Feb 26, 2018
README.md Initial files for CQL - Matt demo Feb 7, 2018
package.json feat: Basic relationship requests (#2) Jun 3, 2018
tsconfig.json Initial files for CQL - Matt demo Feb 7, 2018
yarn.lock feat: Basic relationship requests (#2) Jun 3, 2018

README.md

Moltin GraphQL Server

moltin is a fully baked eCommerce REST API for developers.

This repo is a WIP. Contributors welcome πŸ‘‹

Installation

git clone https://github.com/notrab/graphql-moltin-wrapper.git
cd graphql-moltin-wrapper
yarn

You will need to set MOLTIN_CLIENT_ID inside .env or...

export MOLTIN_CLIENT_ID=

Development

Start the development server is easy.

yarn dev

Development uses nodemon which automatically reloads code after changes.

Visit http://localhost:4000/playground where you will be able to perform queries using GraphiQL.

Example Query

{
  allProducts {
    id
    name
    description
    status
  }

  Product(id: "PRODUCT_ID") {
    id
    name
    description
  }

  allBrands {
    id
    name
  }
}

Production

Most Node deployments will look for the start script. This is set to node index.js which will run the Express application. You can run as production by running the following;

NODE_ENV=production yarn start