Giter Site home page Giter Site logo

gitter-badger / sitecore.habitathome.platform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sitecore/sitecore.demo.platform

0.0 0.0 0.0 130.01 MB

This repository is used to share Sitecore demo assets with external contributors and partners

License: Mozilla Public License 2.0

C# 60.39% PowerShell 23.02% JavaScript 1.04% HTML 14.68% CSS 0.33% ASP 0.55%

sitecore.habitathome.platform's Introduction

Introduction

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.

Important Notice

Is Habitat Home a starter kit or template solution?

No. You should not clone this repository for the purposes of starting a new Sitecore project. There are other community solutions which can be used as a starter for Helix-based Sitecore implementations. Habitat Home is intended as a demo site demonstrating the full Sitecore platform capabilities and development best practices.

Is Habitat Home supported by Sitecore?

Sitecore maintains the Habitat Home example, but Habitat Home code is not supported by Sitecore Product Support Services. Please do not submit support tickets regarding Habitat.

How can I get help with Habitat Home?

For usage questions regarding Habitat Home, installation or code, please use Sitecore Stackexchange or #habitathome on Sitecore Community Slack.

You can use GitHub to submit bug reports or feature requests for Habitat Home. Please do not submit usage questions via GitHub.

License

Please read the LICENSE carefully prior to using the code in this repository.

Support

The code, samples and/or solutions provided in this repository are unsupported by Sitecore PSS. Support is provided on a best-effort basis via GitHub issues or Slack #habitathome (see end of README for additional information).

It is assumed that you already have a working instance of Sitecore XP and all prerequisites prior to installing the demo. Support for product installation issues should be directed to relevant Community channels or through regular Sitecore support channels.

Warranty

The code, samples and/or solutions provided in this repository are for example purposes only and without warranty (expressed or implied). The code has not been extensively tested and is not guaranteed to be bug free.

Getting Started

Prerequisites

The latest Habitat Home demo is built to support Sitecore Experience Platform 9.1 using Sitecore Experience Accelerator (SXA) 1.8.

In order to follow the build instructions in the README, you need to have MSBuild Tools for Visual Studio 2017 installed.

Optional Modules

In addition to base XP 9.1 with SXA, the following optional modules are required to enable additional demo functionality:

We will be upgrading Data Exchange Framework to 2.1 and have not yet tested the 9.1 version of Habitat Home with DEF 2.0.1

SSL Only

The demo is configured for HTTPS/SSL. Please ensure that you create an HTTPS binding with appropriate self-signed certificates.

Clone this repository

Setting Git for Long Paths

  • Before cloning, you need to configure git to allow long paths, which is not the default.

git config --system core.longpaths true

Clone the Sitecore.HabitatHome.Platform repository locally - defaults are configured for C:\Projects\Sitecore.HabitatHome.Platform.

  • Clone -- https: git clone https://github.com/Sitecore/Sitecore.HabitatHome.Platform.git -- ssh: git clone [email protected]:Sitecore/Sitecore.HabitatHome.Platform.git

Parameters - explained

The following is a list of default values / assumptions for settings (cake-config.json)

Parameter Description Default Value
ProjectFolder Location of Sitecore.HabitatHome.Platform project c:\projects\Sitecore.HabitatHome.Platform
Website Root Location of IIS Website Root c:\inetpub\wwwroot\habitathome.dev.local
XConnect Root Location of IIS xConnect Site Root C:\Inetpub\wwwroot\habitathome_xconnect.dev.local\
Instance Url Url of site https://habitathome.dev.local/
BuildConfiguration 'Debug/Release' point to NuGet, 'Local' copies DLLs from an existing installation Debug
DeploymentTarget Local/OnPrem/Azure - see below for details Local
DeployFolder Used for WDP generation and Azure deployments C:\deploy
Version Version of Sitecore being targeted. Must match official 3-digit version 9.1.0
Topology Target topology for WDP creation and Azure deployment. Values are single or scaled single
CDN Content Delivery Network enabled (true/false). Used only when deploying to Azure false

DeploymentTarget:

  • Local: Set to deploy the site to the local Sitecore instance
    • Ignored when calling Build-WDP target where OnPrem is assumed
  • OnPrem: Used when generating a WDP. Targets the WDP for OnPrem transforms (a.k.a. not Azure)
  • Azure: Used when deploying to Azure or generating WDPs which target Azure PaaS deployments

Deploying HabitatHome Locally

Prior to attempting the demo installation, ensure you have a working Sitecore XP 9.1 instance. Detailed installation instructions can be found at doc.sitecore.com.

Jump to local deployment instructions

Generating WebDeploy Package (WDP)

It is now possible to build a custom Web Deploy Package of the Habitat Home project (including xConnect components). The generated WDP can then be installed using SIF for OnPrem or ARM for Azure.

The Sitecore.HabitatHome.Utilities repo now includes an install-habitathome.ps1 script and relevant SIF tasks to download and install Habitat Home as a package (or of course use your own generated package).

Jump to WDP build instructions

Azure (PaaS) Deployment

It is now possible to build, package and depoy to Azure (PaaS) with one command. The script will build Habitat Home, package it for Azure, download the required Sitecore assets and upload them to a (specified) Azure Storage Account. Jump to Azure deployment instructions

Local Build / Deployment

The hostname habitathome.dev.local is used in the SXA Hostname (Site Grouping).

If you do not use habitathome.dev.local you will need to modify the Host Name in /sitecore/content/Habitat Sites/Habitat Home/Settings/Site Grouping/Habitat Home after successfully deploying the site. The Habitat Home site will not respond / render correctly until this value is modified.

If you do not want to use the default settings, you need to adjust the appropriate values in cake-config.json file:

  • WebsiteRoot
  • XConnectRoot
  • ProjectFolder
  • InstanceUrl

The cake script will automatically create a publishSettings.targets.user file with the value of the InstanceUrl specified in the cake-config.json file.

Installation:

All installation instructions assume using PowerShell 5.1 in administrative mode.

1. Deploy Sitecore.HabitatHome.Platform

IMPORTANT: Publish Sitecore Instance after installing all required and optional modules BEFORE trying to deploy Habitat Home

From the root of the solution

  • Run .\build.ps1
    • Notes:
      • If the deployment fails at Sync-Unicorn or Deploy-EXM-Campaigns step, evaluate and fix the error (if any) and then run .\build.ps1 -Target "Post-Deploy".

2. Validating deployment

  1. Browse to https://habitathome.dev.local (or whatever hostname you selected)
    1. You should see the Habitat Home landing page with a full-width carousel
    2. If you do not see the full-width carousel and instead see the initial Sitecore default landing page, ensure that your Host Name was configured correctly in /sitecore/content/Habitat Sites/Habitat Home/Settings/Site Grouping/Habitat Home and that the site has published successfully

Additional Settings

1. Disable Unicorn Serialization

When Unicorn is active, the Content Editor will display warnings that certain items are controlled by Unicorn. If you wish to disable Unicorn serialization, open the Web.config file in your webroot and update the following appSetting

<add key="unicorn:define" value="Off"/>

This appSetting is On by default. Setting it to Off ensures that none of the Unicorn serialization configuration files are loaded.

Generating Web Deploy Package (WDP)

CakeBuild (build.cake) contains tasks to build and package Habitat Home for use either OnPrem or in Azure PaaS. The settings in the cake-config.json file drive the packaging behaviour.

Contribute or Issues

Please post any issues on Slack Community #habitathome channel or create an issue on GitHub. Contributions are always welcome!

sitecore.habitathome.platform's People

Contributors

auzunov-hhog avatar chorpo avatar ezlateva avatar haramizu avatar jeanfrancoislarente avatar keith0123 avatar kimcuhoang avatar nsgocev avatar scottmulligan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.