Getting Started
Create ScandiPWA App is the recommended way to create ScandiPWA applications. It offers a modern build setup with no configuration.
Last updated
Was this helpful?
Create ScandiPWA App is the recommended way to create ScandiPWA applications. It offers a modern build setup with no configuration.
Last updated
Was this helpful?
These commands will create a new Scandi app, start it up, and open it in your browser.
Youβll need to have Node v14 on your local development machine (but itβs not required on the server). You can use (macOS, Linux) or to switch Node versions between different projects.
You donβt need to install or configure tools like Webpack or Babel. They are preconfigured and hidden so that you can focus on the code.
To create a new app, use create-scandipwa-app
:
To create an empty template instead of the default Scandi theme, use the --template blank
option.
Running these commands will create a directory called my-app
inside the current folder. Inside that directory, it will generate the initial project structure and install the transitive dependencies:
No configuration or complicated folder structures, only the files you need to build your ScandiPWA app.
Inside the newly created project, you can run some built-in commands:
npm start
or yarn start
npm run build
or yarn build
Builds the app for production to the build
folder. It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed.
If you are installing the ScandiPWA theme on a CMA setup, after you build it you should also link your theme to your Create Magento App project:
Runs the app in development mode. Will open the to preview changes in your default browser. The page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console.
.