Habitat Home is intended as a demo site demonstrating the full Sitecore platform capabilities and development best practices. Habitat Home cannot be used as a starter kit for a Sitecore project.
The latest Habitat Home is built over Sitecore Experience Platform 9.3 and Sitecore Experience Accelerator 9.3.
Clone the Sitecore.HabitatHome.Platform repository locally.
Defaults are configured for C:\Projects\Sitecore.HabitatHome.Platform.
Use the following commands for cloning :
git clone https://github.com/Sitecore/Sitecore.HabitatHome.Platform.git
git clone git@github.com:Sitecore/Sitecore.HabitatHome.Platform.git
In the Sitecore.HabitatHome.Platform folder, open the cake-config.json file.
Modify the parameters in the file as per your configurations.
{
"WebsiteRoot": "C:\\Inetpub\\wwwroot\\sc93sc.dev.local",
"XConnectRoot": "C:\\Inetpub\\wwwroot\\sc93xconnect.dev.local\\",
"InstanceUrl": "https://sc93sc.dev.local",
"SolutionName": "HabitatHome.sln",
"ProjectFolder": "C:\\Code\\Sitecore\\Sitecore.HabitatHome.Platform",
"UnicornSerializationFolder": "C:\\Code\\Sitecore\\Sitecore.HabitatHome.Platform\\items",
"BuildConfiguration": "Debug",
"BuildToolVersions": "VS2019",
"RunCleanBuilds": false,
"MessageStatisticsApiKey": "97CC4FC13A814081BF6961A3E2128C5B",
"MarketingDefinitionsApiKey": "DF7D20E837254C6FBFA2B854C295CB61",
"DeployExmTimeout": 60,
"PublishTempFolder": "c:\\Deploy",
"version": "9.3.0",
"CDN": "false",
"SitecoreAzureToolkitPath": "c:\\sat"
}
The following parameters have to be modified
Open Powershell as Administrator.
Change Directory to the Project Root folder and run .\build.ps1 (or simply .\build).
The script will perform the following steps for you :
After the execution of the script completes, the script also shows you the duration taken by each of these tasks.
The build process is powered by Cake Build, and can also be used to deploy to a Docker instance. The whole process is powered by Powershell, so no more gulp issues.