Shopify App (Plugin) Development Tutorial: Build, Test and Publish Your First Shopify App
A beginner-friendly tutorial for building Shopify apps: public vs custom apps, setting up with Shopify CLI, the Admin GraphQL API, theme app extensions, webhooks, billing and App Store review requirements.

Table of contents
Shopify apps in plain English
A Shopify app (often called a plugin) is a web application that a merchant installs on their store. It uses Shopify’s APIs to read and change store data — products, orders, customers — and can add features to the store’s admin, its theme, or checkout. Apps run on your own servers; Shopify handles installation, permissions and billing.
- Public apps: listed on the Shopify App Store for any merchant to install — a SaaS business in itself.
- Custom apps: built for one merchant or a single organisation, not listed publicly.

Step 1: Set up your environment

- 1
Create a Shopify Partner account: free, and lets you create development stores to test on.
- 2
Create a development store: a free test store with sample products.
- 3
Install Node.js: a current LTS version.
- 4
Scaffold the app: run the command below, choose a template, and log in when the CLI asks.
npm init @shopify/app@latest
cd my-app
shopify app dev # starts a dev server and tunnel, and installs the app on your dev storeTip: The CLI handles OAuth, session storage and the app configuration file (shopify.app.toml) for you. Spend your time on features, not authentication plumbing.
Step 2: Read and write store data with the Admin GraphQL API
Shopify’s Admin API is GraphQL-first. You request only the fields you need, and every app declares access scopes (for example read_products, write_orders) that the merchant approves on install. Request the minimum scopes you need — reviewers check this.
const { admin } = await authenticate.admin(request)
const response = await admin.graphql(
"#graphql\n" +
"query { products(first: 10) { nodes { id title totalInventory } } }"
)
const { data } = await response.json()
return data.products.nodesStep 3: Extend the store and checkout
- Admin UI: your app’s pages appear inside the Shopify admin, built with Polaris components so they look native.
- Theme app extensions: add app blocks (reviews widget, size chart, WhatsApp button) that merchants place in the theme editor — no manual theme code edits.
- Checkout UI extensions and Functions: customise checkout, discounts, shipping and payment rules where your merchant’s plan supports it.
- Webhooks: subscribe to events such as orders/create or app/uninstalled to keep your data in sync.
Step 4: Billing, compliance and App Store review
- 1
Charge with the Billing API: create recurring subscriptions or usage charges so merchants pay through their Shopify bill.
- 2
Implement privacy webhooks: the mandatory compliance webhooks for customer data requests, customer redaction and shop redaction.
- 3
Meet performance standards: apps must not noticeably slow down storefronts.
- 4
Prepare the listing: name, description, screenshots, demo video, pricing and support contact.
- 5
Submit for review: Shopify tests installation, permissions, billing and functionality; fix feedback and resubmit.
App ideas that work for Indian and Gulf merchants
“The best Shopify apps solve one painful job for a clear type of merchant — and do it without slowing the store down.”
- COD verification: confirm cash-on-delivery orders by WhatsApp or voice call before dispatch.
- WhatsApp abandoned cart and order updates through the official WhatsApp Business Platform.
- GST-compliant invoices and e-way bill helpers for Indian stores.
- Arabic RTL storefront helpers and local courier integrations for GCC stores.
Topics
Umer Hasan
Co-Founder & CTO at Zapprex
Leads engineering, cloud infrastructure and AI automation at Zapprex Technologies, with 7+ years of full-stack and mobile experience.
Keep reading
All articlesHow to Build a SaaS Product: Multi-Tenancy, Billing, Auth and Architecture Explained Simply
The building blocks every SaaS product needs — tenants, roles, subscription billing, onboarding, audit logs and observability — explained for founders, with the decisions you must make early and the ones you can delay.
Custom ERP vs Odoo vs Zoho: Which Is Right for Your Growing Business?
Off-the-shelf ERPs are fast to start but can become expensive and rigid as you grow. A practical comparison of Odoo, Zoho and custom ERP — and a simple framework to decide.
How to Build a SaaS MVP in 8–12 Weeks: Scope, Tech Stack and Budget
Most SaaS MVPs fail from building too much, not too little. A practical week-by-week plan for scoping, building and launching a SaaS product that real customers will pay for.
Questions readers ask
Most Shopify apps use JavaScript or TypeScript with Node.js and React, following Shopify’s templates. You can use other backend languages as long as you implement OAuth and the APIs correctly.
A focused custom app can take 3–6 weeks. A public App Store app with billing, onboarding, extensions and review typically takes 2–3 months.
A custom app is built for a single store or organisation and is not listed. A public app is listed on the Shopify App Store, must pass review and can be installed by any merchant.
Have a project in mind?
Let's build something that moves your business forward.
Share your idea, process or problem — we will come back with a clear plan, timeline and cost range. No technical spec needed.
- Founder reply within 1 business day
- NDA on request · 100% code ownership
- Talk directly to the engineers
