Bootstrap the Commerce Engine

Bootstrapping is the process of initializing a system from scratch, with initial artifact creation that includes environments, entities, and so on. Bootstrapping provides core functionality for initializing Sitecore Commerce by initializing the Entity Store and adding initial artifacts to the global environment.

The Sitecore Commerce Server SDK includes code samples for DevOps operations, so that you can access the Commerce Server API directly. The following instructions assumes that you are using Postman to exercise the Commerce Server API.

  1. Install Postman and launch the application.
  2. Navigate to the Sitecore.Commerce.SDK.x.x.xxx folder (created when you unzipped the Sitecore.Commerce.SDK.x.x.xxx.zip file) and open the Postman folder.
  3. Import the AdventureWorks and Habitat environments into Postman.
    Note: Make any necessary changes to the global variables in the environment you are using (such as ServiceHost) under the Settings > Manage Environments menu in Postman.
  4. In the Collections pane in Postman, navigate to the SitecoreCommerce_DevOps folder.
  5. If your installation is not a fresh install, open the 2 Clean Environment folder and execute the Clean Environment call to the API (by selecting the command and clicking Send in the main Postman window).
  6. Open the 1 Environment Bootstrap folder, and execute the Bootstrap Sitecore Commerce call to the API (by selecting the command and clicking Send in the main Postman window).