ScandiPWA recommends developing applications locally. We have created two tools in order to make this process of installation smooth. They are as follows:
It is possible to combine these setups to deploy ScandiPWA in multiple modes:
In Standalone storefront mode - the front-end is running on a small separate server and uses a remote Magento 2 instance as the source for the data.
When using this mode it is enough to have a ScandiPWA theme powered by CSA (Create ScandiPWA App) to compile it. As a data source, you can use any existing properly configured Magento 2 instance or create a ready Magento 2 instance using RMG (ReadyMage).
In Magento 2 theme mode - the front-end is statically compiled and served by Magento 2 server. In this case, data comes directly from the same server the application is hosted on.
When developing a Magento 2 theme, the local installation of Magento 2 is required. In order to simplify the local Magento 2 installation, we created CMA (Create Magento App) toolchain, with a goal to start a Magento 2 instance with a single command. The CSA (Create ScandiPWA App) toolchain will still be used to compile a theme.