- Clone the Magento 2 Vagrant setup locally.
- Copy
etc/config.yaml.dist
asetc/config.yaml
and update it to use Magento v2.3-develop and PHP7.1 by changing:
ce: "git@github.com:magento/magento2.git"
toce: "git@github.com:magento/magento2.git::2.3-develop"
.
And by changingphp_version: "7.0"
tophp_version: "7.1"
- Open the
Vagrantfile
, and findconfig.vm.synced_folder '.', '/vagrant', disabled: true
. Then, before that line, addconfig.vm.synced_folder '/Users/me/venia-pwa-concept', '/Users/me/venia-pwa-concept', type: "nfs", create: true
, where the specified path is the absolute path locally to your copy of this repository - Go through the normal setup process for the Vagrant box (
./init-project
). - On your host,
cd
tomagento2-vagrant-for-developers/magento2ce/app/code/Magento
, and runln -s /Users/me/venia-pwa-concept/module Pwa
- On your host,
cd
tomagento2-vagrant-for-developers/magento2ce/app/design/frontend/Magento
, and runln -s /Users/me/venia-pwa-concept/theme-frontend-venia venia
- Copy
.env.dist
to.env
and update as necessary, i.e. with the correct host URL. - Run
npm install
. Note if you run inside the vagrant box you may need to install and switch to a newer version of node. - If making changes, run
npm start
to start the development server. - Login to
/admin
, and change your store's theme tovenia
philwinkle/venia-pwa-concept
⚠️Experimental playground of the new PWA theme for Magento 2 based on the Peregrine component library and Buildpack tools
JavaScript