I've installed Magento 2.3.1 and trying to use PWA but it's not working, I have followed the below link
https://hackernoon.com/getting-started-with-magento-pwa-studio-with-poc-c54c33f8d038
but when i was trying to create symlink by using the following commands
ln -s /var/www/html/magento/pwa-studio/packages/pwa-module app/code/Magento/
ln -s /var/www/html/magento/pwa-studio/packages/venia-concept app/design/frontend/Magento/venia
Does anybody know how to create a PWA project? I'm Working in Windows Machine
Best Answer
Setup PWA (Linux os)
Step 1 : Install magento 2.3.1
Step 2 : Install/upgrade node
Use n module from npm in order to upgrade node
For the latest stable version:
For the latest version:
Step 3: Install/update yarn :
Step 4 : Install node-gyp - Node.js native addon build tool
Step 5 : Clone the PWA Studio repository
Go to html root and run :
After running this you will get pwa-studio folder
Step 6: Install PWA Studio dependencies
Step 7: Specify the Magento backend server
Example command:
change in .env file (this will be your magento URL, not admin url):
Step 8: Now create a build
Step 9: Run the server
Starts the Venia storefront development environment only.
Runs the full PWA Studio developer experience, which include Venia hot-reloading and concurrent Buildpack/Peregrine rebuilds.
Generates build artifacts and runs the staging environment, which uses more compressed assets and more closely reflects production.
Once you run one of the above command you will get the virtul url created by PWA.
NOTE: if you are rood user then use sudo.
Follow Magento 2 officical dev docs:
https://devdocs.magento.com/guides/v2.3/pwa/