Boilerplate to create a Shopify app made with Node, Next.js, Shopify-koa-auth, Polaris, and App Bridge React.
Production-ready boilerplate to create a Shopify node app made with Koa.js, Shopify-koa-auth, JSON web token, MongoDB with Mongoose ORM, and React with Polaris.
Since this tutorial (Link before Unite) from Shopify using shopify-cli
has a lot of issues with Authentication
, Session
, Cookie
, Infinite redirect
, Expected a valid shop query parameter
… that make me frustrated for days, I decided to make this boilerplate which include all requirements for a Shopify app and have none of the above issues.
shopify-koa-auth
(offline
access mode) which make authentication process much fasterhttpOnly
and secure
flagapp/uninstalled
topics) registeredClone the repo
git clone https://github.com/hta218/shopify-koajs-react-app.git && cd shopify-koajs-react-app
Install dependencies
npm run set-up
# or yarn set-up
Inside /server
directory, create .env
file with all credentials from your private app that you have created in the above step (Take a look at .env.example
for the template)
Start app
npm start
Shopify OAuth process require HTTPS so you need to either using ngrok or generate SSL files then move theme to server/certs
directory (recommended)
Copyright (c) 2022 - Leo @ https://leohuynh.dev