To bootstrap a new Spartacus storefront, run:
./boostrap.sh <project name>
You can delete the bootstrap
folder and script afterwards.
- Angular CLI: 12.0 or later.
- node.js: 14.x [1]
- yarn: v1.15 or later
(ref Building the Spartacus Storefront Using 4.x Libraries)
[1]: Node.js 12 is EOL by 2022-04-30
- Bootstraps a new Spartacus project from scratch as recommended by the official documentation (with PWA and SSR support)
- Enable optimizations (patches in
bootstrap/patches
):- Configuration for "SAP Commerce in the Public Cloud" (aka CCv2) (including Smartedit setup)
- Minor tweaks to
package.json
:- Run production build on
yarn build
(see Updating the Code Repository for JavaScript Storefronts) - Use SSL for local development server (
yarn start
) - Disable certificate checks for SSR development server (makes connection to local SAP Commerce development server possible)
- Run production build on
- Recommended developer settings for VS Code
- Generate a
manifest.json
for CCv2 with correct settings for Client Side and Server Side Rendering