A simple laravel app for shopify using docker compose
Clone project
git clone https://github.com/deidax/wishlist-laravel-shopify-dev.gitInstall laravel packages using composer
cd wishlist-laravel-shopify-dev composer install composer dump-autoloadInstall node modules using npm
npm installCreate self-signed certificate ssl using mkcert
cd ./nginx/certs mkcert "dev.myshopifyapp.com"Install the CA from mkcert in your machine/browser
mkcert --installAdd 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.comCreate ssl key
cd ../ssl openssl dhparam -out ./dhparam.pem 4096copy .env.example and rename it .env
cp ../../.env.example ../../.envTo 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
To deploy this project run
cd ../../ docker-compose build docker-compose up -dMake sure that the containers are up and running
docker-compose psGenerate laravel key
docker-compose exec app php artisan key:generateClear laravel config cache
docker-compose exec app php artisan config:cacheRun Laravel migrations
docker-compose exec app php artisan migrateNow you can set up your shopify app.


