MageDirect

Magento 2: how to install PWA on local machine

Preinstalling

1) Install Docker – https://docs.docker.com/compose/install/#install-compose

2) Сheck node.js version (need >=8.0.0)

If you have >=8.0.0 version, use ‘nvm’ for the downgrade. If you haven’t, please install nvm.

Install 8 version node, using the command:


3) Install yarn (if you have it, you can miss this step, check if you have: yarn –version) –


After done work with requirements, next step will be to clone from Github on branch master and install Vue Storefront.

Installation

Clone from repo  https://github.com/DivanteLtd/vue-storefront.

In folder vue-storefront , use the command


and below answer the questions :

  1. No
  2. git
  3. ../vue-storefront-api
  4. http://demo.vuestorefront.io:8080/img

You should run this command


in folders

  • vue-storefront;
  • vue-storefront-api;

Moreover, you should copy the default conf/default.json -> conf/local.json and adjust your settings.

Troubleshoot

1. access a folder ( 777 ) ;

2. try using


3. be sure that you installed docker correctly;

4. for docker user access:

References

https://github.com/DivanteLtd/vue-storefront/blob/master/doc/Installing%20on%20Linux%20and%20MacOS.md

https://medium.com/@piotrkarwatka/vue-storefront-how-to-install-and-integrate-with-magento2-227767dd65b2

Was this article helpful?
Dislike 0
Views: 91

Sergiy DmitrukMagento Developer

Rate us
1 Star2 Stars3 Stars4 Stars5 Stars
(5 votes, average: 4.80 out of 5)
rating-magedirectLoading...
Bottom Top