shopify-hello-world

Featured

Create a minimal working Shopify app that queries products via GraphQL Admin API. Use when starting a new Shopify integration, testing your setup, or learning basic Shopify API patterns. Trigger with phrases like "shopify hello world", "shopify example", "shopify quick start", "simple shopify app", "first shopify API call".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Shopify Hello World ## Overview Minimal working example: query your store's products using the Shopify GraphQL Admin API. Uses `@shopify/shopify-api` with a custom app access token for zero-friction setup. ## Prerequisites - Completed `shopify-install-auth` setup - A Shopify development store - An Admin API access token (`shpat_xxx`) from Settings > Apps > Develop apps ## Instructions ### Step 1: Create Project ```bash mkdir shopify-hello-world && cd shopify-hello-world npm init -y npm install @shopify/shopify-api dotenv ``` ### Step 2: Configure Environment ```bash # .env SHOPIFY_STORE=your-store.myshopify.com SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx SHOPIFY_API_KEY=your_api_key SHOPIFY_API_SECRET=your_api_secret ``` ### Step 3: Write the Hello World Script ```typescript // hello-shopify.ts import "@shopify/shopify-api/adapters/node"; import { shopifyApi } from "@shopify/shopify-api"; import "dotenv/config"; const shopify = shopifyApi({ apiKey: process.env.SHOPIFY_API_KEY!, apiSecretKey: process.env.SHOPIFY_API_SECRET!, hostName: "localhost", apiVersion: "2024-10", isCustomStoreApp: true, adminApiAccessToken: process.env.SHOPIFY_ACCESS_TOKEN!, }); async function main() { const session = shopify.session.customAppSession( process.env.SHOPIFY_STORE! ); const client = new shopify.clients.Graphql({ session }); // Query shop info const shopInfo = await client.request(`{ shop { name currencyCode pri...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category