Friday, November 25, 2016

Sitecore® Helix & Habitat



Sitecore® Helix is a set of official guidelines and recommended practices for Sitecore Development.

Sitecore created the Helix architecture as a recommended way of building websites and created Habitat to demonstrate it.

Habitat is an example project that follows the Helix principles and recommended practices.

Habitat is a modular architecture, an approach to take to achieve an easily maintainable solution over time.

Why Helix?

• Set of architecture conventions and guidelines that describe how to apply
   recommended technical designprinciples to a Sitecore project.

• Secure implementations in a future-proof way by architecting them as maintainable
  and extensible business-centric modules

• Development process recommendations to make it as easy as possible to build, test, 
  extend, and maintain  Sitecore implementations



How to Configure Habitat :-

Special thanks to Martina Welander for this nice video, which explain how to install and configure Sitecore habitat.


Step 1: Download Habitat from github  http://github.com/sitecore/habitat
Step 2: Run Sitecore instance 8.2 and name to your Website (habitat.dev.local)
Step 3: Extract all files in d: or c: drive.
           for example D:\Habitat-master\
          Open the Habitat project in VS2015.
Step 4: Change the path on below files:
1) /Solution/Configuration/z.Habitat.DevSettings.config
2) /Solution/Configuration/gulp-config.js
3) /Solution/Configuration /publishsettings.targets

The default settings for Habitat are
    URL: http://habitat.dev.local/
    Location: C:\Websites\Habitat.dev.local\

Step 5:
  • Download Node.js
  • Open command window as an administrator go to the root of the solution repository and run 'npm install'
         You can upgrade to the latest version of npm using: npm install -g npm@latest

Step 6: Run Unicorn


“PM> Install-Package Unicorn.”

Step 7: Task Runner Explorer pane in Visual Studio 2015.  or ctrl + alt + Backspace
default task will execute all the configuration and building tasks for the solution. If for some reason setup fails, it is possible to run the install tasks one by one:


If xDB not installed you will get below error. After that install and run mongoDB.





Happy Sitecore Habitat :-)

I hope this will be helpful for you, if you face any error/issues; feel free to comment your thought or suggestion.