Build Scandi as a Magento theme

This guide requires 5 steps to be completed in sequence:

  1. Create a new Create Magento App
  2. Create a new Create Scandipwa App
  3. Link Magento App with ScandiPWA App
  4. Run ScandiPWA App in Magento mode
  5. Change Magento theme to ScandiPWA

1. Create a new Create Magento App

Install dependencies

Before setting up, make sure you have installed the libraries required to build the PHP. The list of these libraries can be found here: for Linux and macOS.

Also, make sure to install Docker and PHPBrew in your system.

Quick Start

# make sure dependencies are installed !!!npx create-magento-app my-appcd my-appnpm start

This command will start Docker services, start PHP and open your favorite browser with Magento 2 store.

Create Magento App choose an available port for Magento 2 so it can vary. By default, it will use port 80 so the URL for the store will be http://localhost:80/.

Creating a Magento App

<aside> 🚨 Make sure your Node version is up to date!

You’ll need to have Node >= 12 on your local development machine (but it’s not required on the server). You can use n (macOS, Linux) or nvm-windows to switch Node versions between different projects.

</aside>

To create a new app, you may choose one of the following methods:

NPX

npx create-magento-app my-app