Turuq Onboarding

Shopify App Development

Shopify Development Guide

Welcome to Shopify Development at Turuq!
This guide will take you from Shopify basics to advanced integration concepts needed to work on our Shopify app. Our app handles order management, inventory synchronization, fulfillment tracking, and payment processing for logistics operations.

Table of Contents

  1. Shopify Fundamentals
  2. Shopify Architecture & Core Concepts
  3. Shopify APIs Deep Dive
  4. Authentication & App Development
  5. GraphQL Mastery
  6. Shopify Polaris UI Framework
  7. Order Management & Fulfillment
  8. Inventory Management
  9. Webhooks & Real-time Updates
  10. Development Tools & Testing
  11. Resources & Community
  12. Final Notes

Shopify Fundamentals

What is Shopify?

Start here to understand the platform you'll be working with.

Essential reading & links


Shopify Architecture & Core Concepts

Core Data Models

Understand products, variants, orders, customers, and locations.

Hands-on exercise

  1. Create a test store at partners.shopify.com
  2. Explore the admin panel
  3. Create products with variants
  4. Place test orders
  5. Understand order states and fulfillment process

Shopify APIs Deep Dive

REST vs GraphQL

  • Our app primarily uses GraphQL. (Note: REST Admin API became legacy on October 1, 2024 — build new apps using GraphQL Admin API.)

GraphQL

  • Use GraphiQL to query products and practice pagination with cursors.

Practice exercises

  1. Use GraphiQL to query products from your test store
  2. Fetch orders with line items
  3. Query inventory levels
  4. Practice cursor-based pagination

Authentication & App Development

Key concepts

  • Shop / Store configuration
  • Product & Variants structure
  • Order lifecycle and customer management
  • App types (public, custom/private) and OAuth/session handling

Getting started

  • Install Shopify CLI
  • Create a basic app: shopify app generate
  • Deploy to a test store
  • Explore App Bridge components

Useful links


GraphQL Mastery

Advanced GraphQL concepts

  • Variables & fragments for reusability
  • Error handling and validation
  • Bulk operations for large datasets
  • Cursor-based pagination for efficiency

Shopify GraphQL


Shopify Polaris UI Framework

What is Polaris?

Polaris is Shopify's React design system used to make embedded apps feel native inside Shopify Admin.

Learn

Topics to master

  • App Bridge (embedded apps)
  • Session handling in embedded apps
  • Polaris React components & icons

Order Management & Fulfillment

Order lifecycle & fulfillment

Core to logistics integration — understand order states, fulfillments, and fulfillment events (tracking updates).

Important objects

  • Order, Fulfillment, FulfillmentEvent, DraftOrder

Useful references


Inventory Management

Inventory system deep dive

Critical for warehouse integration.

Core objects

  • Product Variants
  • Inventory Items
  • Locations
  • Inventory Quantities & Inventory Levels

Docs


Webhooks & Real-time Updates

Event-driven architecture

Keep Turuq and Shopify in sync via webhooks.

Common Webhook Events

  • orders/create
  • orders/updated
  • orders/paid
  • orders/fulfilled
  • app/uninstalled

Testing & tools


Development Tools & Testing

Typical workflow

  1. Local development with Shopify CLI
  2. Use a development store for testing
  3. GraphiQL for querying and testing
  4. Webhook testing with ngrok
  5. Deploy to staging/production

Tools


Resources & Community

Official resources

Community


Final Notes

This guide is a living document — please contribute improvements. Following this structured approach will give you the foundation needed to build robust, scalable Shopify integrations at Turuq.

Good luck on your Shopify development journey!