moltin is a fully baked eCommerce REST API for developers.
This repo is a WIP. Contributors welcome ๐
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=
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.
{
allProducts {
id
name
description
status
}
Product(id: "PRODUCT_ID") {
id
name
description
}
allBrands {
id
name
}
}
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