Skip to content

Instantly share code, notes, and snippets.

View kimcuhoang's full-sized avatar
:octocat:
🇻🇳💻

Kim CH kimcuhoang

:octocat:
🇻🇳💻
View GitHub Profile
Param(
[string]$siteName = "DemoHome",
[string]$siteSuffix = $siteName.ToLower(),
[string]$siteHostName = "$($siteSuffix).dev.local",
[string]$engineSuffix = $siteName.ToLower(),
[string]$engineHostName = "localhost",
[string]$identityServerHost = "$($engineHostName):5050",
[switch]$Initialize,
[switch]$Bootstrap,
[switch]$SkipPublish,
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<sitecore role:require="Standalone or ContentDelivery or ContentManagement">
<commerceEngineConfiguration type="Sitecore.Commerce.Engine.Connect.CommerceEngineConfiguration, Sitecore.Commerce.Engine.Connect">
<shopsServiceUrl patch:instead="shopsServiceUrl">https://localhost:5000/api/</shopsServiceUrl>
<commerceOpsServiceUrl patch:instead="commerceOpsServiceUrl">https://localhost:5000/commerceops/</commerceOpsServiceUrl>
<defaultEnvironment patch:instead="defaultEnvironment">DemoHomeAuthoring</defaultEnvironment>
<defaultShopName patch:instead="defaultShopName">Demo Home</defaultShopName>
</commerceEngineConfiguration>
</sitecore>
</configuration>
@kimcuhoang
kimcuhoang / initialize-sitecore-commerce-engine-project.ps1
Last active November 22, 2018 19:48
Use this script for starting a new Sitecore.Commerce.Project without Plugin Example
Param(
[string]$siteName = "DemoHome",
[string]$siteSuffix = $siteName.ToLower(),
[string]$siteHostName = "$($siteSuffix).dev.local",
[string]$engineHostName = "localhost",
[string]$identityServerHost = "$($engineHostName):5050",
[string]$DefaultEnvironment = "$($siteName)Authoring",
[string]$DefaultShopName = "Demo Home",
[string]$webRoot = "E:\Inetpub\wwwroot",
[string]$BizFxPathName = "SitecoreBizFx_$($siteSuffix)",
@kimcuhoang
kimcuhoang / Remove-BindingsFromCommerceSites.ps1
Last active November 10, 2018 02:20
This script will remove the given hostname and also its SSL Certificate
[CmdletBinding()]
param(
[string] $SitePrefix = "habitathome",
[string] $hostName = "localhost",
[string] $CertificateName = "localhost",
[string[]]$sites = @("CommerceAuthoring:5000", "CommerceMinions:5010", "CommerceOps:5015", "CommerceShops:5005", "SitecoreBizFx:4200", "SitecoreIdentityServer:5050")
)
$ErrorActionPreference = 'Stop'
Import-Module WebAdministration
@kimcuhoang
kimcuhoang / install-sitecore-publishingservice.ps1
Last active November 26, 2021 14:16
A script to install Sitecore Publishing Service
[CmdletBinding()]
param(
[string] $SitecoreInstanceName = "habitathome",
[string] $PublishingServiceZipPackage = ".\Sitecore Publishing Service 3.1.1 rev. 180807-x64.zip",
[string] $WebrootPath = "D:\Inetpub\wwwroot",
[string] $SqlServerName = ".",
[string] $SqlAdminAccount = "sa",
[string] $SqlAdminPassword = 'The-password-for-sa-account',
[switch] $UpdateSchemasOnly
)