In this blog, we will learn How to Create a Laravel Shopify App using Shopify Command-Line Interface (CLI).
Shopify CLI (Command Line Interface) helps to create Shopify Apps. Using CLI, you can quickly generate Shopify apps and app extensions.Ā
Contents
Step 1: Enter the below command in your directory
npm init @shopify/app@latest
You will be asked to enter the app name
Then select the php templateĀ
Step 2: Go to your newly created app directory using the following command
cd blog-test
Step 3: Go to the web folder using the below commandĀ
cd web
Step 4: Install your composer dependenciesĀ
composer install
Step 5: Next, create a .env file using the below commandĀ
cp .env.example .env
After that, create the database you want and add details of the database in the .env fileĀ
Step 6: Now, generate APP_KEY for the app
php artisan key:generate
Step 7:Ā Then, create tables for the database using the below command
php artisan migrate
Tadaa! Your Laravel app is ready.
Step 8: Now you need to switch back to your appās root folder using the below command
cd ..
Now run the below command in your terminal to start your appĀ
npm run dev
Copy the Preview Url and paste it into your browser to install the appĀ
Step 9: You have to login into your Shopify admin store
Click Install app to install the app in the store
And your app is created successfully
This way, you can Create Shopify PHP App using Shopify CLI. If you have any doubts, share them with me through the comment section. Share the article with your Shopify or Laravel friends to help them create Shopify Apps using Shopify CLI commands.
Happy Coding!
In this guide, we'll explore how to integrate ChatGPT, an AI-powered chatbot, with a Laravel…
In the world of business, understanding financial metrics is crucial for making informed decisions and…
Welcome to the MageComp Monthly Digest, where we bring you the latest updates, releases, and…
In this era, businesses are always on the lookout for ways to engage with their…
Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…
E-commerce has transformed the way consumers shop for products and services and interact with businesses.…