GithubHelp home page GithubHelp logo

sitecore / helix.examples Goto Github PK

View Code? Open in Web Editor NEW
79.0 79.0 110.0 18.35 MB

Developer-focused examples of implementing the Sitecore Helix practices.

Home Page: https://sitecore.github.io/Helix.Examples/

License: Other

JavaScript 1.46% CSS 84.31% HTML 11.26% SCSS 2.97%

helix.examples's Introduction

Welcome to the Sitecore Helix Examples Repository

The Sitecore Helix Examples are demonstrations of Sitecore Helix practices across various tooling and business scenarios. They are intended to demonstrate a wider variety of implementation types / requirements than existing examples. Information on the available examples and installation can be found in the documentation.

Read the Docs

What is Sitecore Helix?

Sitecore Helix is a collection of recommended practices and conventions for the solution architecture of Sitecore product implementations.

Visit helix.sitecore.net to learn more.

Are Helix Examples supported by Sitecore?

Sitecore maintains the Helix documentation and Helix Examples, but example code is not supported by Sitecore Product Support Services. Please do not submit support tickets regarding Helix Examples.

How can I get help with Helix Examples?

For usage questions regarding Helix Examples installation or code, or questions about Helix, please utilize Sitecore Stackexchange or #helix on Sitecore Community Slack.

You can use GitHub to submit issues for Helix Examples, but please do not submit usage questions.

helix.examples's People

Contributors

dependabot[bot] avatar justin-vogt avatar navancommits avatar nickwesselman avatar svenkle avatar vlad-iobagiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

helix.examples's Issues

Unable to build solution: This specific WebPublishMethod(FileSystem) is not yet supported on msbuild command line

Clone the repo, open Helix Basic Unicorn solution in the Visual Studio and try to build it. Build fails:

Severity	Code	Description	Project	File	Line	Suppression State
Error		Target WebFileSystemPublish Failed	Website			
Severity	Code	Description	Project	File	Line	Suppression State
Error		This specific WebPublishMethod(FileSystem) is not yet supported on msbuild command line.  Please use Visual Studio to publish.	Website			

It should not fail. It should not require any setup steps (except probably nuget restore) to build the solution.

[VS2017/19]

SIF execution continues after failed msbuild

SIF continued to Unicorn deploy despite error during build:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VisualStudio\v16.0\Web\Microsoft.Web.Publishing.targets(3000,5): error : Copying file C:\dev\Hel
ix.Examples\helix-basic-unicorn\src\Foundation\Serialization\website\App_Config\Include\Unicorn\Unicorn.UI.IdentityServer.config.disabled to obj\Debug\Package\PackageTmp\App_Confi
g\Include\Unicorn\Unicorn.UI.IdentityServer.config.disabled failed. Could not find file 'C:\dev\Helix.Examples\helix-basic-unicorn\src\Foundation\Serialization\website\App_Config\
Include\Unicorn\Unicorn.UI.IdentityServer.config.disabled'. [C:\dev\Helix.Examples\helix-basic-unicorn\src\Deployment\Website\Website.csproj]
WARNING: FAILED to build "C:\dev\Helix.Examples\helix-basic-unicorn\build\..\src\Deployment\Website\Website.csproj". Please check the build log
"C:\Users\nwe\AppData\Local\Temp\Website.csp
WARNING: roj.msbuild.log" for details.

Debug.Assert throws popup windows

Hey guys, I've never used Debug.Assert(...) before, usually I just use old good Assert.ArgumentNotNull(). There is some strange behavior with this debug asserts. When tests run (no mapper if it's NCrunch or VS), popup window appears:

image

Any clue why is that and if it makes sense to switch to Sitecore.Diagnostics.Assert?
BTW, if the argument is null then ArgumentNullException is expected.

Automatically set Publish Path for Basic Company - Unicorn

HPP-based publish is currently hardcoded to C:\inetpub\wwwroot\helix-basic-unicorn.dev.local. This won't change for most people, but if they do, the initial publish will work (as the path is passed in to MSBuild), but from Visual Studio it will still build to the above path.

Doesn't seem like we can override this in Local.pubxml.user? Would be nice to be able to "patch" this in a file that is ignored by git.

Validation/prerequisites error

Hey guys. I am having issues running the installer, despite that I;ve followed all the steps and made sure all the prerequisites are in place.

Does this trigger anything to you?

I do have all these in place and the configuration should be good

SQL Server 2016 SP2
Apache Solr 7.5.0 with SSL enabled
.NET Framework 4.7.2

image

Also the connections appear to be fine:
image

Thank you in advance

Should there be a Foundation.ContentSearch module?

Only one Feature uses Content Search! Might be a good demonstration of avoiding premature optimization.

(And it's worth double checking whether the Products module even needs that config customization...)

Implement multi-instance installation

  • Create a menu system for choosing instances to install
  • Implement global config for SQL, Solr, etc
  • Update install and uninstall script/config for multiple instances / shared code
  • Method of detecting/listing instances and their install status
  • Wire up install/uninstall to menu
  • Prompted configuration/setup for SQL, Solr, etc
  • Move prereq check/script into global menu
  • Add instance URLs to end of install (or better yet, open it)

Basic Company - Helix violations

  • Datasource templates are not interface templates (low)
  • Datasource locations on renderings point to content tree, creating Feature > Project reference (medium)
  • Datasource locations are all shared, no local datasources (medium)

Basic Company - Unicorn - Simplify configs via base config

Via @kamsar :

[11:39 AM] Kam Figy
you can avoid needing to re-specify the targetdatastore, for example, if you use a base config that sets that
​[11:39 AM] Kam Figy
$(layer) and $(module) are allowed variables in the base path
​[11:40 AM] Kam Figy
though iirc it's expecting Layer.Module as a config name for that to work

https://kamsar.net/index.php/2017/02/Unicorn-4-Part-III-Configuration-Enhancements/

[11:45 AM] Kam Figy
in many cases you could probably also have a base layer config, that would automatically include i.e. /templates/$(layer)/$(module or some such
​[11:45 AM] Kam Figy
then the predicates on each module would lose the type attribute and become additive for any customizations to the module

Helixbase doing this:
https://github.com/muso31/Helixbase/blob/master/src/Foundation/Serialization/code/App_Config/Include/Foundation/Foundation.Serialization.Base.config
https://github.com/muso31/Helixbase/blob/master/src/Feature/Hero/code/App_Config/Include/Feature/Feature.Hero.Serialization.config

Basic Company - Install and Build

Set up the initial Basic Company example, project-per-module w/ Unicorn, with HPP and SIF-based scripts for install, build, and Unicorn deploy.

Create Visual Studio project templates for the LaubPlusCo extension.

Basic Company - Build / Sync script

Would be nice to have a script which just runs and build/publish and sync's Unicorn, especially when adding a new module or pulling from source control.

Basic Company - Front-end Work Area

Set up a simple front-end development environment for creating a Bulma-based HTML template for the Basic Company. Assume a front-end-to-backend handover of HTML, CSS, and JavaScript typical of an agency environment, where the front-enders do not know Sitecore or Helix.

Automatic download of install zip

Both Habitat Home and sitecore-docker just allow you to fill in your Sitecore u/p, and it downloads the install package(s) for you. This could remove a step for installation.

Should only ask if they have not placed the zip in the assets folder already (thus avoiding the download time).

Cant install helix example with unicorn

OS: Windows 10, When installing helix unicorn via install.ps1 I get the following error:

"Install-SitecoreConfiguration : Could not load file or assembly 'file:///C:\Projects\Helix.Examples\install-modules\unicorn\MicroCHAP.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) At C:\Projects\Helix.Examples\examples\helix-basic-unicorn\build\install.ps1:50 char:9 + Install-SitecoreConfiguration @singleDeveloperParams *>&1 | T ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration"

image

While the dll file is in this directory (cloned directly from master)
image

How can I circumvent this?

Running install.ps1 throws error

Steps to reproduce

  1. Run .\install.ps1
  2. Enter $SqlServer, $SqlAdminUser ... $SolrService variables
    Actual result: error is thrown:

Exception calling "ReadKey" with "0" argument(s): "Cannot read keys when either application does not have a console or when console input has
been redirected from a
file. Try Console.Read."
At C:\Sources\Helix.Examples\install-modules\helix.examples.menu.psm1:38 char:5
$null = [Console]::ReadKey()
CategoryInfo : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : InvalidOperationException

image

Expected result: no exception

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.