Install Vue Storefront using the command line
Enable managed-vhosts
1 |
hypernode-systemctl settings managed_vhosts_enabled --value True |
Configure HTTPS and nginx
Replace vsf.appname.hypernode.io
with the frontend domain name you want to use Vue Storefront for.
1 |
hypernode-manage-vhosts vsf.appname.hypernode.io --type vuestorefront --https --force-https |
Enable and configure Elasticsearch v5.2
1 |
hypernode-systemctl settings elasticsearch_enabled --value True |
1 |
hypernode-systemctl settings elasticsearch_version --value 5.2 |
Install Node.js v10.16
1 2 3 4 5 6 7 8 |
cd /tmp wget https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz tar xvfJ node-v10.16.0-linux-x64.tar.xz mv node-v10.16.0-linux-x64 ~/.node rm node-v10.16.0-linux-x64.tar.xz mkdir -p ~/.local/bin for f in ~/.node/bin/*; do ln -s $f ~/.local/bin/`basename $f`; done source ~/.profile |
After Node.js has been installed you can check if it’s correctly set by running node -v
. This should output v10.16.0.
Install Yarn latest version
1 2 3 4 5 6 7 |
cd /tmp wget https://yarnpkg.com/latest.tar.gz tar zvxf latest.tar.gz mv yarn-v* ~/.yarn rm latest.tar.gz ln -s ~/.yarn/bin/yarn ~/.local/bin/yarn source ~/.profile |
Setting up Vue Storefront
1 2 3 4 5 6 7 8 9 10 |
git clone https://github.com/DivanteLtd/vue-storefront.git ~/vue-storefront cd ~/vue-storefront yarn install cp config/{default,local}.json sed -i 's/http:\/\/localhost:8080\/api//g' config/local.json sed -i 's/http:\/\/localhost:8080/\/api/g' config/local.json sed -i 's/\/api\//\//g' config/local.json sed -i 's/8080/4000/g' config/local.json sed -i 's/http"/https"/g' config/local.json yarn build |
Setting up Vue Storefront API
1 2 3 4 5 6 7 8 9 10 11 |
git clone https://github.com/DivanteLtd/vue-storefront-api.git ~/vue-storefront-api cd ~/vue-storefront-api yarn install cp config/{default,local}.json sed -i 's/8080/4000/g' config/local.json sed -i 's/localhost:4000//g' config/local.json npm run db new npm run restore2main npm run db rebuild yarn build for f in `ls /data/web/vue-storefront-api/node_modules/pm2/bin`; do ln -s /data/web/vue-storefront-api/node_modules/pm2/bin/$f /data/web/.local/bin/$f; done |
Using Vue Storefront demo as backend
1 2 |
cd ~/vue-storefront yarn installer |
When asked if you would like to use https://demo.vuestorefront.io as the backend answer yes