Web & SaaS Engineering 11 min read

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.

Umer Hasan

Umer Hasan

Co-Founder & CTO at Zapprex

Shopify App (Plugin) Development Tutorial: Build, Test and Publish Your First Shopify App
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.
At a glance: Step 3: Extend the store and checkout — Admin UI, Theme app extensions, Checkout UI extensions and Functions, Webhooks
At a glance: Step 3: Extend the store and checkout

Step 1: Set up your environment

Step 1: Set up your environment: 4 steps
  1. 1

    Create a Shopify Partner account: free, and lets you create development stores to test on.

  2. 2

    Create a development store: a free test store with sample products.

  3. 3

    Install Node.js: a current LTS version.

  4. 4

    Scaffold the app: run the command below, choose a template, and log in when the CLI asks.

Create and run a Shopify app with Shopify CLIbash
npm init @shopify/app@latest
cd my-app
shopify app dev    # starts a dev server and tunnel, and installs the app on your dev store

Tip: 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.

Query products from an app route (template-based apps)javascript
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.nodes

Step 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. 1

    Charge with the Billing API: create recurring subscriptions or usage charges so merchants pay through their Shopify bill.

  2. 2

    Implement privacy webhooks: the mandatory compliance webhooks for customer data requests, customer redaction and shop redaction.

  3. 3

    Meet performance standards: apps must not noticeably slow down storefronts.

  4. 4

    Prepare the listing: name, description, screenshots, demo video, pricing and support contact.

  5. 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.”

— Umer Hasan, CTO
  • 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

Shopify App DevelopmentShopify PluginShopify CLIE-commerce
Umer Hasan
Written by

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.

FAQ

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.

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