August 11, 2023

Free Shopify and Next.js App Template for serverless non-embedded Apps

πŸš€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 template or this link
  • Create an App in your Shopify Partner Account
  • Set https://localhost as the App Url for now
  • Go to App Setup -> Embedded app and disable Embed your app in Shopify admin
  • Fill out your .env file
  • SHOPIFY_API_KEY: The Shopify Api key of the app, you have just created
  • SHOPIFY_API_SECRET_KEY: The Shopify Api secret key of the app, you have just created
  • SCOPES: The access scopes your app needs
  • HOST: The Url of your app. Leave this empty for development
  • SHOP: Your dev stores url
  • NGROK_AUTH_TOKEN: Your Ngrok auth token
  • UPSTASH_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}/login to install your app

πŸš€ One click deploy

Clone and deploy this template in one click to Vercel for free!

Deploy with Vercel

Check out our Next.js deployment documentation for more details.

🧰 Built with