https://medium.com/the-vue-storefront-journal/vue-storefront-how-to-install-and-integrate-with-magento2-227767dd65b2 To complete this tutorial, You need to have: latest version of Docker installed, node.js, version > 8.0.0 installed, imagemagick command if you’re installing vue-storefront-api locally — to have Image Proxy in command
# install vue-stroefront
git clone https://github.com/DivanteLtd/vue-storefront.git vue-storefront
#Then You need to download all the npm packages and start the installer:
cd vue-storefront;
yarn install;
npm run installer;
#install backend api
git@github.com:DivanteLtd/vue-storefront-api.git
#checklist
#in vue-storefront-api directory
cd ./vue-storefront-api;
yarn install;
docker-compose up;
#npm run dev;
#restore products db and run latest migrations
yarn restore;
yarn migrate;
#copy config/default.json to config/local.json
#run api
yarn dev
#in vue-storefront-api directory
cd ../vue-storefront;
yarn install;
#npm run dev;
#config app
#copy config
move conf/default.json conf/local.json
yarv dev;
#import default data
#from ./vue-storefront-api
cd ../vue-storefront-api;
#npm run migrate;
yarn restore;
yarn migrate;
yarn dev;
#restart everything
cd ./vue-storefront;
yarn dev;
cd ../vue-storefront-api;
docker-compose up -d;
npm run dev;
#integrate local Magento 2 instance
git clone https://github.com/DivanteLtd/mage2vuestorefront.git mage2vs;
cd mage2vs/src;
npm install;
#create oauth
#go to system/integration
#create new integration with API with permission for
#Catalog, Sales, My Account and Carts
#activate and set credentials in src/config.js in mage2vs folder
#populate data
#the sequence of commands is important as for example node cli.js categories populates Redis cache for the further use of node cli.js products and so on
cd ./mage2vs/src;
node cli.js taxrule;
node cli.js attributes;
node cli.js categories;
node cli.js productcategories;
node cli.js products;