Boilerplate to create an embedded Shopify app made with Node, Next.js, Polaris, and App Bridge React.
Based on bluebeel/nextjs-shopify, uses only Next.js as a server, enabling Serverless deployments. Unlike Shopify/shopify-app-node which requires use of a custom server with Koa router.
- If you don’t have one, create a Shopify partner account.
- If you don’t have one, create a Development store where you can install and test your app.
- In the Partner dashboard, create a new app. You’ll need this app’s API credentials during the setup process.
- Install the latest stable version of Node.js
- Install the Shopify App CLI
- Install npm packages (run:
npm install
) - Run
shopify connect
and selectNode.js App
- Start your app with
shopify serve
. The CLI should automatically start serving the app with Ngrok, and whitelist the callback urls in the partners dashboard - Open the ngrok based auth link in your browser to start the oauth process with your shopify development shop