Skip to content
CommerceQL is a minimalist eCommerce GraphQL boilerplate
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.install chore(deps): pin dependencies May 17, 2018
database feat: Run graphql prepare on prisma post-deploy May 17, 2018
.gitignore feat: Update deps May 17, 2018
LICENSE Replace Slack link with Forum link May 23, 2018
now.json fix: Remove env vars in favour of dotenv Apr 30, 2018
package-lock.json chore(deps): update dependency prisma to v1.29.1 Mar 21, 2019


CommerceQL is a minimalist eCommerce GraphQL boilerplate.




You will need to be running the latest version of graphql-cli, prisma and have a Prisma account too.

npm install -g graphql-cli prisma
graphql create my-commerce-app --boilerplate commerceql/commerceql
cd my-commerce-app
npm run dev


The setup above should take care of configuring your ENV with your Prisma endpoint. You'll want to configure Stripe so you can begin to take payments using the checkout mutation.

Go ahead and add your STRIPE_SECRET_KEY inside .env.

⚠️ Note: This boilerplate doesn't handle auth. You'll want to protect the order/s queries.


CommerceQL can be used to build a custom GraphQL backed eCommerce app, without the limitations of hosted solutions.

You can extend the CommerceQL platform by adding additional functions, types and permissions, or you can use it "as is" and start selling 💰.


You can immediately deploy "as is" to Zeit Now using the preconfigured now.json. You'll want to add your alias to this file for easier deployment.

If you make any changes to the schema or resolvers, you'll want to run prisma deploy to update your prisma sandbox.


Once you're up and running, locally with npml run dev or deployed to now you can start to run the provided queries, mutations and subscriptions.


❤️ This project is sponsored by Moltin.

You can’t perform that action at this time.