πFree Shopify x Next.js App Template for serverless non-embedded Apps
Everything to build your next non-embedded Shopify App and Marketing pages in one place. This Template utilizes Middleware and APIs for OAuth, so no custom server is needed.
Intentionally barebones. π¦΄
Table of Contents
- π€© Features
- π Requirements
- π€ Getting Started
- π One click deploy
- π§° Built with
π€© Features
- β‘ Next.js - React Framework for static rendering
- β¨ Serverless Architecture
- π³ App Subscrptions
- πΎ Session Storage with Redis
- π Ngrok for development
- π Apollo/Client
- πͺ Webhooks set up
π Requirements
- Shopify Partner Account
- Shopify Dev Store
- Ngrok account
- Upstash Redis Database
π€ Getting Started
- Click
Use this templateor this link - Create an App in your Shopify Partner Account
- Set https://localhost as the App Url for now
- Go to
App Setup->Embedded appand disableEmbed your app in Shopify admin - Fill out your
.envfile SHOPIFY_API_KEY: The Shopify Api key of the app, you have just createdSHOPIFY_API_SECRET_KEY: The Shopify Api secret key of the app, you have just createdSCOPES: The access scopes your app needsHOST: The Url of your app. Leave this empty for developmentSHOP: Your dev stores urlNGROK_AUTH_TOKEN: Your Ngrok auth tokenUPSTASH_REDIS_REST_URL: Your Upstash Redis REST url.UPSTASH_REDIS_REST_TOKEN: Your Upstash Redis REST token.- Run
npm install - Run
npm run dev - Visit
https://{YOUR_APP_URL}/loginto install your app
π One click deploy
Clone and deploy this template in one click to Vercel for free!
Check out our Next.js deployment documentation for more details.