⚛️ GraphQL + Moltin + GraphQL Yoga 🧘
Switch branches/tags
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.
src
.gitignore
.graphqlconfig.yml
.tool-versions
LICENSE
README.md Initial files for CQL - Matt demo Feb 7, 2018
package.json
tsconfig.json Initial files for CQL - Matt demo Feb 7, 2018
yarn.lock

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