Spartacus


Spartacus is an Angular-based JavaScript storefront for SAP Commerce Cloud. It is an opensource project that anyone can access by downloading the source code freely. It is also published as a set of libraries that can be used to create a branded storefront app - import the published Spartacus libraries into the custom app, change styling, add features and publish the branded storefront!

Spartacus storefront pulls products and content from the back-end as needed. It is a single page application where the first page loads and the rest is driven by code. This has inherently good performance as Spartacus only loads the parts of the page that require updating. The whole page is not reloaded whenever something changes. This also provides a good user experience not just because of the speed, but also because you control everything in the UI.

Spartacus Storefront is Easy to Create


There are some prerequisites to create a Spartacus storefront. Have an SAP Commerce Cloud Backend running, preferably from 1905, but you can also use 1811. It is configured to accept OCC (Omni-Commerce Connect) REST API calls to communicate with SAP Commerce Cloud environments. Your development environment is to be set up for angular coding.

The endpoints used in OCC adapters can be configured so that the customization of Spartacus can be very lightweight.

The primary step in creating the first Spartacus app is to create an angular app, add the dependencies that Spartacus requires to configure the app to use the Spartacus storefront module, and then add the default styling localization. It is better to use libraries to maintain upgradability.

Why would you use Spartacus?


With Commerce Cloud out-of-the-box accelerator, you get JSP-based templates that are provided as part of the Accelerator storefronts. Then why would you move or start your project with a Spartacus based storefront?

Here are some of the key benefits.

SAP Spartacus Timeline


SAP Spartacus was first released in 2019 and has been updated regularly with new features and improvements. Here is a brief SAP Spartacus timeline that presents its rapid evolution:

2019
2019

SAP Spartacus was launched as an open-source project on GitHub, with the first version (1.0) released in July. It supported features such as server-side rendering, progressive web app, internationalization, and accessibility. It also provided a sample data extension and a B2C storefront template.

2020

SAP Spartacus released several minor and major versions, such as 1.1, 1.2, 1.3, 1.4, 2.0, 2.1, and 3.0. It added features such as lazy loading, schematics, outlets, feature flags, CMS-driven dialogs, and B2B storefront template. It also introduced the Spartacus Storefront Library to provide more components and modules for the storefront.

2021

It released further versions, going up to version 4.0. In these releases, it added features such as web components, micro frontends, schema.org markup, data isolation, and B2B organization management. It also rebranded itself as SAP Commerce Cloud, Composable Storefront.

2022

SAP Spartacus released versions 4 and beyond to version 5.1. The features added included personalization, promotions, loyalty programs, and B2B cost center management. It was renamed to SAP Commerce Cloud, Composable Storefront since version 5.03. In these updates, it integrated with other SAP products and services, such as SAP Customer Data Platform, SAP Marketing Cloud, and SAP Upscale Commerce.

2023

SAP Commerce Cloud, Composable Storefront released further versions and went up to version 6.0 in 2023. It has now added features such as voice assistant, emotion recognition, predictive analytics, and B2B approval workflow. It also adopted the latest Angular version and technologies, such as Angular Ivy, Angular Elements, and Angular Material.

Spartacus Storefront