Contact information

xianglong, changsha, hunan province

We are available 24/ 7. Call Now. ccsunnydev@gmail.com
ccsunny | shopify app development
Avatar photo

Shopify APP 开发

前提

第一步

Anchor link to section titled “Step 1: Create a new app”

You can create a new Shopify app using Shopify CLI

  1. Navigate to the directory where you want to create your app.Your app will be created in a new subdirectory.
  2. Run the following command to create a new app:TerminalCopy$shopify app initExplain
  3. When prompted, enter a name for your app, and then select Start with Remix to use the Remix template.TipIf you want to create an extension-only app, then select Start by adding your first extensionLearn more about extension-only apps.We recommend that you use the Remix template for most other cases. However, you can use one of our other templates, or provide your own. Learn more about using other app templates.A new app is created and Shopify CLI is installed along with all the dependencies that you need to build Shopify apps:An image showing an app being created in the terminal.

第二步: Start a local development server

Anchor link to section titled “Step 2: Start a local development server”

After your app is created, you can work with using a local development server and the Shopify CLI.

Shopify CLI uses Cloudflare to create a tunnel that enables your app to be accessed using a HTTPS URL.

  1. Navigate to your newly created app directory.TerminalCopy$cd my-new-appExplain
  2. Run the following command to start a local server for your app:TerminalCopy$shopify app devExplain


Shopify CLI performs the following tasks:

  • Guides you through logging into your Partner account and selecting a Partner organization
  • Creates an app in the Partner Dashboard, and connects your local code to the app
  • Creates your Prisma SQLite database
  • Creates a tunnel between your local machine and the development store

To learn more about the processes that are executed when you run dev, refer to the Shopify CLI command reference.

Caution

To use a development store or Plus sandbox store with Shopify CLI, you need to be the store owner, or have a staff account on the store. Staff accounts are created automatically the first time you access a development store with your Partner staff account through the Partner Dashboard.

第三步: 安装 APP 到主题商店

Anchor link to section titled “Step 3: Install your app on your development store”

You can install your app on your development store, and automatically populate your development store with products that you can use for app testing.

  1. With the server running, press p to open your app’s preview URL in a browser.When you open the URL, you’re prompted to install the app on your development store.
  2. Click Install app to install the app on the development store.You now have a development store running with your new app installed:An image showing how to install your app on your development store.
  3. From the home page of the new app, click Generate a product to create a product for your development store.

Leave a Reply

Need a successful project?

Lets Work Together

Contact US
  • right image
  • Left Image