Skip to content

Sitecore-Hackathon/2022-Web3

Repository files navigation

Hackathon Logo

Sitecore Hackathon 2022

Team name

⟹ Web3

Category

⟹ Sitecore Command Line Interface (CLI) plugin

Description

⟹ Write a clear description of your hackathon entry.

Module Purpose

An easy way to get running Sitecore XM CM instances for use in headless projects, also from non Windows machines - Anywhere where the Sitecore CLI runs.

What problem was solved

  • People on non Windows machines or low spec'ed Windows machines had trouble running a full Sitecore XM on VM's or directly on host. They can now request a fresh new Sitecore XM CM instance using Sitecore CLI dotnet sitecore instance start -n 'example' --pwd 'b'.
  • Hosting the backend (operator) and instances can be done on any Windows Container capable machine (Windows 10/11, Server 2019/2022), cloud or local.

How does this module solve it

Overview

  1. Sitecore CLI plugin that talks http with an operator.
  2. Operator REST API that schedules containers on a Windows host.
  3. Preconfigured lightweight Sitecore 10.2.0 XM CM, single container with embedded SQL Server 2019 Express and custom pipelines to support the Sitecore CLI authentication.

Video link

⟹ Provide a video highlighting your Hackathon module submission and provide a link to the video. You can use any video hosting, file share or even upload the video to this repository. Just remember to update the link below

Presentation video The video is almost 10 minutes, but you can get the overview in the beginning, and see everything in the docs :)

Pre-requisites and Dependencies

  • Windows 10 / 11
  • Some Docker engine, for example Docker Desktop
  • Visual Studio 2022 .NET 6.0 SDK

Installation instructions

  1. Make sure you have placed a valid Sitecore license file at .\glitterfish\docker\build\cm\license.xml
  2. Make sure you don't have anything else running on localhost:80 (we will detect if IIS is running and stop it in Start.ps1 - this requires elevated mode)
  3. Run .\Build.ps1 (builds the cm, operator and plugin)
  4. Run .\Start.ps1 (starts the operator)

Usage instructions

⟹ Provide documentation about your module, how do the users use your module, where are things located, what do the icons mean, are there any secret shortcuts etc.

Go to the rendering host example to try it out.

Comments

Of course we have important comments.

As an extra benefit and in the spirit of Hackathon and Community fun the CLI has been extended with a couple of entertainment features as well:

  1. dotnet sitecore joke tell [--sj / --sitecore-joke] : get a random dad joke displayed pulled from an external and free dad joke service or specify the option to get a curated Sitecore joke instead.
  2. dotnet sitecore steve says : get insights related to Sitecore's upcoming roadmap based on input from an external content service.
  3. you can use aliases such as blockchain, nft and wallet - we are a real web 3.0 team!

Jokes CLI

Cleanup

  1. Run .\Stop.ps1 to stop operator and instances.

About

Web3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors