This is a sample code repository for Spartacus implementation and extensibility. It showcases a set of code examples and concrete use cases on how to implement, extend and enhance Spartacus for CX customers, partners, and implementers.
- SAP Commerce Cloud instance
- Release 1905 recommended
- Works with 1811 and 1808, with reduced functionality
- Angular CLI: v8.0.0 or later, no greater than v9.0.0
- node.js: v10 or later, no greater than v12
- yarn: v1.15 or later
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
It is recommended to use SAP Commerce 1905 and the latest version of Spartacus. Spartacus works with Release 1808 and 1811 of SAP Commerce Cloud, with some limitations.
Spartacus is also being updated so that it works well with upcoming releases of SAP Commerce Cloud. This means that certain features of Spartacus may only work with unreleased future editions of SAP Commerce Cloud. This will be noted as we release new versions of Spartacus.
Spartacus bootcamp sample code is provided "as-is" with no official lines of support.
To get help from the Spartacus community:
- For more general questions, post a question in the Help chat of our Slack workspace.
- For developer questions, post a question to Stack Overflow with the 'spartacus' tag.
Team Spartacus welcomes feedback, ideas, requests, and especially code contributions.
- Post comments to our Feedback chat in our Slack channel.
- Read the Contributing document and learn how to:
- Help others
- Report an issue
- Contribute code to Spartacus
Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the SAP Sample Code License except as noted otherwise in the LICENSE file.