Sitecore provides a Getting started template for Sitecore developers that want to try out Sitecore Headless Developer with ASP.NET and Sitecore Containers. It can be used to get you started quickly or to kickstart new customer projects.
The template includes:
Ø A Docker
environment for a Sitecore XP0 topology with an ASP.NET rendering host.
Ø Serialized
items for a one-page sample site. See the src\Items.module.config file for details.
Ø An MSBuild
project name Platform for deploying configuration and code into the Sitecore
Content Management role. See the src\platform folder for details.
Ø An MSBuild project named Renderingost for an ASP.NET rendering host. See the src\rendering folder for details.
To create a solution from the Getting Started template, you must complete the following procedures:
1. Install the
prerequisites
2. Install the
template
3. Create the Project
Solution
Install the Prerequisites
.NET Core 3.1 SDK
.NET Framework 4.8 SDK
Visual Studio 2019
Docker for Windows (with Windows
Containers enabled)
PowerShell 5.1 (PowerShell 7 is not
supported)
Install the template
Create a folder in your system.
Open PowerShell with Administrator privileges and point to
your local folder.
Run the following command
dotnet new
-i Sitecore.DevEx.Templates --nuget-source https://sitecore.myget.org/F/sc-packages/api/v3/index.json
Create the Project Solution
Open PowerShell with administrator privileges
Check if you have an internet information Server running on port
443
Get-Process -Id
(Get-NetTCPConnection -LocalPort 443).OwningProcess
If you do, you must stop it:
iisreset
/stop
Go to your solutions folder and create the Project solution
dotnet
new sitecore.aspnet.gettingstarted -n projectname
Go to the Sitecore10/ folder
You use the provided init.ps1 script to prepare the following
items for the Sitecore container environment.
A
valid/trusted wildcard certificate for *.sitecore10.localhost
The host
file entries for sitecore10.localhost
The required
environment variable values in the .env file for the Sitecore instance.
To prepate the Sitecore container environment
.\init.ps1
-InitEnv -LicenseXmlPath "<path to your license.xml file>"
-AdminPassword "<your Sitecore administrator password>"
Download the Sitecore Docker image and install the containers
.\up.ps1
The template creates the following entries in the Windows
host file.
https://id.sitecore10.localhost
pints identity server
https://cm.sitecore10.localhost
points content management server
https:///www.sitecore10.localhost
points container with the rendering host
0 Comments
Post a Comment