docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Ability to deploy Venia sample data instead of Luma sample data

Open drpayyne opened this issue 4 years ago • 8 comments

It would be great if deploying Venia sample data was integrated into this project. Thanks!

Please refer: https://magento.github.io/pwa-studio/venia-pwa-concept/install-sample-data/

drpayyne avatar Feb 19 '21 08:02 drpayyne

Good idea. I think something like a bin/setup-pwa-studio-sampledata script may work? Similar to how we have a bin/setup-pwa-studio script https://github.com/markshust/docker-magento/blob/master/compose/bin/setup-pwa-studio

markshust avatar Mar 28 '21 14:03 markshust

@markshust, yep! sounds right.

drpayyne avatar Apr 11 '21 08:04 drpayyne

@markshust bin/setup-pwa-studio-sampledata needs this scipt. but this script is not there in bin folder. Have you developed this? If yes please share with us

amitmaurya1024 avatar Sep 16 '21 09:09 amitmaurya1024

@amitmaurya1024, unfortunately this hasn't been developed yet. If you do develop it, try to contribute it back. It would be really useful!

drpayyne avatar Sep 16 '21 09:09 drpayyne

I think it may be best to run PWA Studio code outside of Docker completely? I'm failing to see a need to run the Node.js app stuff through Docker. Please convince me otherwise 🤓

markshust avatar Sep 21 '21 16:09 markshust

Certainly, yes! The PWA Studio app itself will run independently, but the sample data Magento offers for Venia is different from the regular Luma sample data. This needs to be deployed to the Magento instance. More info can be found in link in the description.

drpayyne avatar Sep 21 '21 16:09 drpayyne

@drpayyne thanks very much, I will check this out.

markshust avatar Sep 22 '21 21:09 markshust

Hi @markshust

I've created a pull request that introduces a script for setting up a Magento 2 environment and configuring PWA Studio. The script automates the installation of sample data for Venia PWA and configures the PWA Studio environment.

Could you please review the pull request? I believe this script could be beneficial for the project, and I'm open to any feedback or suggestions you might have.

YevhenZvieriev avatar Jan 16 '24 18:01 YevhenZvieriev