Skip to content

A simple exemple of a shopify app built with Laravel and vuejs

Notifications You must be signed in to change notification settings

deidax/wishlist-laravel-shopify-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopify Laravel app using docker compose

A simple laravel app for shopify using docker compose

Installation

Clone project

  git clone https://github.com/deidax/wishlist-laravel-shopify-dev.git

Install laravel packages using composer

  cd wishlist-laravel-shopify-dev
  composer install
  composer dump-autoload

Install node modules using npm

  npm install

Create self-signed certificate ssl using mkcert

  cd ./nginx/certs
  mkcert "dev.myshopifyapp.com"

Install the CA from mkcert in your machine/browser

  mkcert --install

Add the app address to the hosts file (if you're using docker-machine make sure to use your VM IP address)

  127.0.0.1  dev.myshopifyapp.com

Create ssl key

  cd ../ssl
  openssl dhparam -out ./dhparam.pem 4096

Environment Variables

copy .env.example and rename it .env

  cp ../../.env.example ../../.env

To run this project, you will need to update the following environment variables in your .env file

APP_DOMAIN=dev.myshopifyapp.com

DB_DATABASE

DB_USERNAME

DB_PASSWORD

DB_ROOT_PASSWORD

SHOPIFY_APP_NAME

SHOPIFY_API_KEY

SHOPIFY_API_SECRET

Deployment

To deploy this project run

  cd ../../
  docker-compose build
  docker-compose up -d

Make sure that the containers are up and running

  docker-compose ps

Generate laravel key

  docker-compose exec app php artisan key:generate

Clear laravel config cache

  docker-compose exec app php artisan config:cache

Run Laravel migrations

  docker-compose exec app php artisan migrate

Now you can set up your shopify app.

Screen shotes