Personally, I’m fond of Sitecore.HabitatHome.Utilities so much. It’s really a quick way for me to install the following Sitecore demo:
- Habitat Home: HabitatHome Demo and the tools and processes in it is a Sitecore® solution example built using Sitecore Experience Accelerator™ (SXA) on Sitecore Experience Platform™ (XP) following the Helix architecture principles
Today, I want to play around with it by installing the following Sitecore demo:
- Habitat Home Commerce: HabitatHome Commerce Demo and the tools and processes in it is a Sitecore® solution example built using Sitecore Experience Accelerator™ (SXA) on Sitecore Experience Platform™ (XP) and Sitecore Experience Commerce™ (XC) following the Helix architecture principles
Step-by-step guide for installing Habitat Home Commerce (Sitecore XP 9.0.2 + SXA 1.7.1 + Sitecore XC 9.0.2)
- install Habitat Home (Sitecore XP 9.0.2 and SXA 1.7.1)
- Note: should execute .\build -Target “Quick-Deploy” in Step 13
- (optional) if you don’t want to wait for a looooooong operation and have a good chance to get connection issues, you will need to:
- download and copy / paste the following package to \Sitecore.HabitatHome.Utilities\XC\install\assets\downloads
- MSBuild Microsoft Visual Studio Web targets 14.0.0.3
- Note: must log into https://dev.sitecore.net/ before downloading
- download and copy / paste the following package to \Sitecore.HabitatHome.Utilities\XC\install\assets\Commerce
- download and copy / paste the following package to \Sitecore.HabitatHome.Utilities\XC\install\assets\downloads
- create the configuration-xc.json file and populate it with the default values
- launch PowerShell as an administrator
- change directory to \Sitecore.HabitatHome.Utilities\XC\install
- execute .\set-installation-defaults
- (optional) if you don’t want to use the default settings, you will need to adjust the appropriate values in the configuration-xc.json file
- launch PowerShell as an administrator
- change directory to \Sitecore.HabitatHome.Utilities\XC\install
- remove example extension out of \XC\install\set-installation-overrides.ps1.example manually or by executing copy set-installation-overrides.ps1.example set-installation-overrides.ps1
- open set-installation-overrides.ps1 and then correct the settings
- execute .\set-installation-overrides
- Note: if the install directory of 7-zip is NOT “C:\Program Files\7-Zip\7z.exe”, you will need to update \Sitecore.HabitatHome.Utilities\XC\install\install-xc0.ps1
- let’s install Experience Commerce
- launch PowerShell as an administrator
- change directory to \Sitecore.HabitatHome.Utilities\XC\install
- execute .\install-xc0
- you will be prompted for your https://dev.sitecore.net/ credentials – the required assets will be downloaded automatically if any, otherwise click Cancel button
- Note 1: we can remove the tasks completed from \Sitecore.HabitatHome.Utilities\XC\install\assets\Resources\Commerce_SingleServer.json and re-do this step if there is something wrong
- Note 2: we can increase the execution timeout by updating \Sitecore.HabitatHome.Utilities\XC\install\assets\Resources\Modules\SitecoreUtilityTasks\SitecoreUtilityTasks.psm1 if you see something like this
- hopefully you can see something like this
- download or clone the git repo from Habitat Home Commerce 9.0.2.2
- restore all Node.js modules
- run command line as Administrator
- change directory to \Sitecore.HabitatHome.Commerce
- execute npm install
- Note: I don’t want to use the default settings so I need to adjust the appropriate values in the following files:
- \gulp-config.js
- \publishsettings.targets
- \src\Project\HabitatHome\website\App_Config\Include\Project\z.HabitatHome.Commerce.Website.DevSettings.config
- \deploy-commerce-engine.ps1
- \src\Project\HabitatHome\engine\wwwroot\bootstrap\Global.json
- \src\Project\HabitatHome\engine\wwwroot\data\Environments\Plugin.SQL.PolicySet-1.0.0.json
- \gulp-config.js
- let’s deploy the solution
- run command line as Administrator
- change directory to \Sitecore.HabitatHome.Commerce
- execute node_modules\.bin\gulp initial
- hopefully you can see something like this
- let’s deploy the engine
- launch PowerShell as an administrator
- change directory to \Sitecore.HabitatHome.Commerce
- execute .\deploy-commerce-engine.ps1 -Boostrap -Initialize
- hopefully everything runs well and then you would see something like this
- open a browser and then navigate to https://habitathome.local, you would see something like this after adding some products to cart successfully
Got issues?
Please send your issues (with screenshots if possible) to viet.hoang.sitecore@gmail.com so that I have a chance to understand your problem and be able to suggest the solution.
Happy Sitecore Demo Installation!
2 thoughts on “Playing around with Sitecore.HabitatHome.Utilities and Habitat Home Commerce 9.0.2 on your machine”