EPAM Headless Commerce Accelerator for Sitecore Experience Commerce
This repo is archived! Please check out the new Sitecore Order Cloud based implementation: Headless Commerce Accelerator
CLONE repository
SET environment variables:
<repository path>\environment\EnvironmentVariables.ps1
"<repository path>\src\license.xml"
, put your license.xml file here)MODIFY build.cake file
<repository path>\src\build.cake
"https://hca.local"
".\\..\\environment\\docker\\xc0\\deploy\\website"
OPEN PowerShell CLI under Administrator and set execution policy
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
GO TO <repository path>\environment
RUN SetupEnvironment.ps1
RUN RunContainers.ps1
CHECK the Docker containers status:
docker container ls
RUN ConfigureCommerce.ps1
DEPLOY marketing definitions:
RUN SQL Database Cleanup:
docker exec -it <ID>
powershell (this will connect us to docker container)cd C:\tools\scripts
(navigate to scripts folder).\Watch-Directory.ps1
(run watcher)C:\deploy
C:\inetpub\wwwroot
<repository path>\src
.\build.ps1 -Target "Initial-Deploy"
in Powershell CLIIn case when you run .\RunContainers.ps1
script and get errors, restart docker and run .\RunContainers.ps1
script again.
Solr 8.1.1
(installing the service with NSSM is recommended)Node 10.15.3 x64
Java jre-8u191 x64
Postman 6.6.1
Redis 3.0.504
Make sure you use these packages during installation:
Acquire a Sitecore license that authorizes the use of JSS (open it in Notepad and check for "Sitecore.JSS")
CommerceOpsServicesPort
CommerceShopsServicesPort
CommerceAuthoringServicesPort
CommerceMinionsServicesPort
Important to say theSitecore Experience Accelerator** module is not needed so it should not be downloaded either.
The service cannot accept control messages at this time. (Exception from HRESULT: 0x80070425)
To resolve the issue follow the link to StackOverflow. Before you start the installation process from the beginning you have to delete the folders created by the failed commerce server installation process (i.e. sitecoreCatalogItemsScope, sitecoreCustomersScope, sitecoreOrdersScope from solr_root_folder/server/solr).To bootstrap the Commerce Server follow these instructions:
<add verb="*" path="sitecorejss_media.ashx" type="Sitecore.JavaScriptServices.Media.MediaRequestHandler, Sitecore.JavaScriptServices.Media" name="Sitecore.JavaScriptServices.Media.MediaRequestHandler" />
Sitecore/Parameters.InitParams
are correct for your installation.192.168.50.4 -> VM IP
;192.168.50.4 -> VM IP
.unicorn-hca
name inside the Root_Sitecore_Folder\App_Data folder to the .\src folder (Root_Sitecore_Folder is the folder where Sitecore is installed, for ex. c:\inetpub\wwwroot\xp0.sc)..\src\build.ps1
in PowerShell with administration privileges (script will restore NuGet packages, install npm dependencies and run deployment process). Next time cake scripts can be run from Visual Studio (install Visual Studio Extension) or from Visual Studio Code (install Cake Build) or from PowerShell.In case of issues with the installation process you have several diagnostic options:
Front-end code is processed using webpack. In order to start development server run following commands. For more details see readme.md in the 'src' folder.
cd ./src
npm start
.\src\build.ps1
you should log in to the sitecore then make a GET request on **http://{website}/unicorn.aspx?verb=Sync&log=null&skipTransparentConfigs=false**