Skip to content

tiffbman/cloud-commerce-sample-setup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SAP Commerce Cloud Sample Repository

This sample repository contains the files and folders that are required to set up SAP Commerce Cloud. You can clone this repository and then follow the instructions in the readme to update the example files with your specific details.

When your files are ready, push them to your SAP Commerce Cloud repository.

Requirements

  • You have a public-facing code repository.
  • You have an active SAP Commerce Cloud subscription.
  • You have a license for SAP Commerce version 1808 or higher.
  • You have not set up SAP Commerce Cloud yet.

Supported Versions

You can find the supported SAP Commerce versions listed in the Compatibility help topic.

Download and Installation

Not applicable.

Configuration

These instructions walk you through the process of cloning the repository and then updating the sample files with your specific requirements.

Select the Appropriate Sample Branch

There are multiple branches to choose from based on your specific configuration needs.

  • master: This branch contains a sample Commerce Cloud only configuration. This should be used in MOST cases.
  • 1905-datahub: This branch contains the contents from master in additional to configuration files used for Data Hub. Data Hub is an add-on purchase for Commerce Cloud.
  • 1905-spartacus: This branch contains the configuration necessary to use Commerce Cloud with the Spartacus JavaScript storefront.

Clone Repository

Clone the sample repository (instructions can be found here). The files are copied to your local machine.

Default Folder Structure

The following folders and files are included in the sample repository.

Root level

  • core-customize folder: The folder that contains all of the folders and files that support Commerce Cloud.

core-customize folder

  • manifest.json: The Commerce Cloud manifest.json file, which defines Commerce Platform customizations.
  • kiwi folder: An example custom extension.
  • tiger folder: An example custom extension.
  • other sample manifests: A collection of tested and verified manifest files that you can use as starting points for your Commerce Cloud environments.

Update the Custom Extensions

  1. If you don’t have custom extensions, you can delete the kiwi & tiger sample folders.
  2. If you do have custom extensions, create a folder for each custom extension and add your extension files.
  3. List the custom extensions in the manifest.json file that is inside the core-customize directory.
  4. If you have custom extensions with dependencies, list the source extension first, then the dependent extension. Extensions are built in the order in which they appear in the manifest file.

Update the Commerce Cloud manifest.json

  1. Open the manifest.json file inside the core-customize folder.
  2. Update the “version” with the version of SAP Commerce that you plan to use. Refer to the Supported Versions section of this readme for more information.
  3. Save the changes.

Prepare to Push the Sample Repository

In the sample repository, verify that you have the following files in the core-customize folder.

  • manifest.json: This is the manifest.json for Commerce Cloud.
  • folders (optional)

Push the Commerce Cloud Configuration to Code Repository

Push the core-customize folder from your local machine to the root level of your Commerce Cloud repository.

Access the Cloud Portal

Log in to the Cloud Portal and verify that your code repository is connected.

  1. From a supported browser, log in to https://portal.commerce.ondemand.com. For more information, see Accessing the Cloud Portal.
  2. Select Repository and verify that you are connected to the correct code repository.
  3. Find the environments that were provisioned for your subscription.
  4. Create a new build.
  5. Deploy the build to the environment using the Initialize Database option.

Final Steps - Validating an example Electronics Storefront

Use the Cloud Portal to create a build and then deploy the build to an environment.

  1. After the build is deployed, you can find the 'Storefront' endpoint in the Environments page of the Cloud Portal listed under Public Endpoints.
  2. Click on the Storefront hyperlink to access the details page for endpoint.
  3. Either add an IP Filter Set for your IP address OR change the Base Rule from 'Deny All' to 'Allow All' in order to receive traffic to this example storefront.
  4. Save the changes.
  5. Click on the URL listed next to the Storefront public endpoint. You will receive a server error.
  6. In your browser's address, append the endpoint address with /?site=electronics and reload the page
  7. Verify that you see a basic electronics storefront.

Limitations

The repository must be a public-facing repository. You cannot use a private repository to host SAP Commerce Cloud configurations.

Known Issues

There are no known issues at this time.

How to Obtain Support

This repository is provided "as-is"; no support is available.

Find more information about SAP Commerce Cloud Setup on our help site.

License

Copyright (c) 2020 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.

About

Find the sample manifest.json and configuration files that you can use to build out your commerce repository in SAP Commerce Cloud.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%