Skip to content

Instantly share code, notes, and snippets.

@rasor
Last active May 21, 2018 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasor/a3e6e6d6fd824685956d922a3de55b63 to your computer and use it in GitHub Desktop.
Save rasor/a3e6e6d6fd824685956d922a3de55b63 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Start VueStorefront frontend
# Location: /project-root-above-vue-storefront/vs3.sh
# Prerequisites: DVueStorefront API from vsapi2.sh must be running
cd vue-storefront
# Open browser
start http://localhost:3000
# start VueStorefront
yarn dev
# refresh browser until you get response from the webshop
# Press Ctrl-C to exit Dev when done
# The End
read -n1 -r -p "Press any key to exit..." key
echo Start docker containers on Windows
rem Location: /project-root-above-vue-storefront-api/vsapi1.sh
rem Windows shell does not give me login problems to docker
rem Prerequisites: Docker for wwindows must be running - verify
docker network ls
cd vue-storefront-api
rem start 4 docker containers
docker-compose up
rem The End
pause
#!/bin/bash
# Start VueStorefront API
# Location: /project-root-above-vue-storefront-api/vsapi2.sh
# Prerequisites: Docker containers from vsapi1.bat must be running - verify
docker container ls
# Open browser for Elastic Search container
start http://localhost:9200/
cd vue-storefront-api
# Open browser for API
start http://localhost:8080/api
# start api
yarn dev
# refresh browser until you get a json response like this: {"version":"0.1.0"}
# Press Ctrl-C to exit Dev when done
read -n1 -r -p "Press any key to stop docker, when done..." key
# stop 4 docker containers
docker-compose stop
# The End
read -n1 -r -p "Press any key to exit..." key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment