Logo Lanfrica

aboudou-cto-bloko/momo-gate

Domain:

digital infrastructure

Record type:

software
Creator:
abo
Host:
Shopify app — Mobile Money payments (MTN, Orange, Wave) for West African merchants # Shopify App Template - React Router This is a template for building a Shopify app using React Router. It was forked from the Shopify Remix app template and converted to React Router. Rather than cloning this repo, follow the Quick Start steps. Visit the `shopify.dev` documentation for more details on the React Router app package. ## Upgrading from Remix If you have an existing Remix app that you want to upgrade to React Router, please follow the upgrade guide. Otherwise, please follow the quick start guide below. ## Quick start ### Prerequisites Before you begin, you'll need to download and install the Shopify CLI if you haven't already. ### Setup ```shell shopify app init --template=github.com ``` ### Local Development ```shell shopify app dev ``` Press P to open the URL to your app. Once you click install, you can start development. Local development is powered by the Shopify CLI. It logs into your account, connects to an app, provides environment variables, updates remote config, creates a tunnel and provides commands to generate extensions. ### Authenticating and querying data To authenticate and query data you can use the `shopify` const that is exported from `/app/shopify.server.js`: ```js export async function loader({ request }) { const { admin } = await shopify.authenticate.admin(request); const response = await admin.graphql(` { products(first: 25) { nodes { title description } } }`); const { data: { products: { nodes }, }, } = await response.json(); return nodes; } ``` This template comes pre-configured with examples of: 1. Setting up your Shopify app in /app/shopify.server.ts 2. Querying data using Graphql. Please see: /app/routes/app.\_index.tsx. 3. Responding to webhooks. Please see /app/routes/webhooks.tsx. Please read the documentation for @shopify/shopify-app-react-router to see what other API's are available. ## Shopify Dev MCP This template is configured with the Shopify …