Setting up the HCL Commerce Developer Tooling environment
Before you begin
-
Before installing HCL Commerce Developer software, ensure that your HCL Commerce development environment meets the hardware and software requirements.
- For software requirements, see Supported software levels, fixes, and settings for HCL Commerce.
- For hardware requirements, see Hardware requirements for HCL Commerce.
- You must have access to a running HCL Commerce Version 9.1
Transaction server.
This can be from a development or production environment.
The default configuration for the Tooling SDK proxy expects this server to be running on localhost. If your Transaction server is not running on your local machine, modify the commerce-tooling/proxy.conf.json (for HCL Commerce 9.1.0.0 and 9.1.1.0), or the commerce-tooling/proxy.conf.js proxy configuration file to specify the location of the Transaction server.
- You must have access to Management Center for HCL Commerce.
The default user ID and password for the development environment version of Management Center is wcsadmin:wcs1admin.
- You must have Node.js installed. Node.js includes the Node Package Manager
(npm) utility. The supported node version is v18-lts (includes npm 9.6.x).
To install Node.js, visit https://nodejs.org/en/download/.
Procedure
-
Obtain the HCL Commerce Developer Tooling environment Tooling SDK.
- Review Obtaining HCL Commerce Developer software and Review the list of the latest available download packages to ensure that you are obtaining the most up-to-date version of HCL Commerce software.
- Download and extract the latest version of the Tooling SDK to obtain the HCL_Commerce_Tooling_9.1.x.x.bundle Git bundle.
-
Clone the project in Git from the downloaded Git bundle.Run the following command:
git clone bundleName projectName
Where:- bundleName
- The filename of the bundle you are cloning.
- projectName
- The name of the git project that you are creating.
For example:git clone HCL_Commerce_Tooling_9.1.0.0.bundle HCL_Commerce_Tooling
- Use the Node package manager (NPM) to install the Tooling SDK node server.
- Start the Tooling development server.In the same directory, run the command:
npm start
-
If you are upgrading from a previous version of the Tooling SDK, update the
proxy.conf.json (for HCL Commerce 9.1.0.0 and
9.1.1.0), or proxy.conf.js proxy
configuration file.
- Point to the IP address or the host name of the search data environment
for search resources.For example:
"/search/resources/api/v2/categories": { "target": "https://localhost:30921", "secure": false, "changeOrigin": true }
- Update the store localhost URLs to HTTPS, and specify the correct port
to properly render images in mock search results within Management Center for HCL Commerce.For example:
"/hclstore": { "target": "https://localhost:6443", "secure": false, "changeOrigin": true }
Note: The React store SDK server must be running to render mock search results in the Management Center Search tool.
- Point to the IP address or the host name of the search data environment
for search resources.
-
Use the local host. To
use localhost:7443, you need to run the following command
to configure the browser first:
https://localhost:7443/lobtools/cmc/Configure?featureName=localAdminConsole&featureEnabled=true
- Launch Management Center for HCL Commerce to verify that your installation was
successful.
In a browser, navigate to https://localhost:7443/lobtools/cmc/ManagementCenter to launch Management Center.