Last active
May 21, 2018 08:19
-
-
Save rasor/a3e6e6d6fd824685956d922a3de55b63 to your computer and use it in GitHub Desktop.
VueStorefront on Windows - startup in Docker - https://rasor.github.io/vue-storefront-installation-on-windows-dev-box.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
Scripts for starting [VueStorefront] on Windows
https://rasor.github.io/vue-storefront-installation-on-windows-dev-box.html
Based on https://github.com/DivanteLtd/vue-storefront/blob/master/doc/Installing%20on%20Windows.md