How to create a Shopify app?

1)Create a new app

From the file directory where you initially set up Shopify to operate, launch the terminal.

Then run the following command

sudo yarn create @shopify/app

A new app is created, and Shopify CLI is installed along with all of the dependencies.

The following image shows an app is successfully created in the terminal:

file folder:

1. start a local development server

navigate to your newly created directory by

cd modern-marketplace-app

To start a local server for your app, run the following command

sudo yarn dev

Note: ngrok creates a tunnel between your local environment and the development store.

2. Install your app on the development store

Open preview url generated by yarn dev command,

example:https://b04e-2001-df7-5280-bc37-c8a6-3c76-d3e6-63ba.in.ngrok.io?shop=test-new-abin.myshopify.com&host=dGVzdC1uZXctYWJpbi5teXNob3BpZnkuY29tL2FkbWlu

When you open the URL, you’re prompted to install the app on your development store.

Click Install app to install the app in the store.

After clicking “install,” the app will be added to the Shopify admin dashboard’s app area.

Leave a comment

Your email address will not be published. Required fields are marked *