I created a module to simplify the setup of the Habitat solution which you can find on the Sitecore marketplace. The installer downloads the latest version of the Habitat solution and automatically configures the following files:

z.Habitat.DevSettings.config

gulp-config.js

publishsettings.targets

The application then performs the npm install. After running the installer you can proceed to step 5 on the Habitat Getting Started guide which involves running the default gulp task – I’ll eventually incorporate this step into the application.

Pre requisites:

Instance of Sitecore 8.2

Install node.js

Step by step guide:

After installing your Sitecore instance and node.js run the installer:

Enter a location to install your Habitat solution to, and then configure the variables:

intanceRoot – this is the path to your Habitat instance. Remember to use the double backslash ‘\ \’ as this is the text that will appear in the gulp-config.js file.

publishUrl – the url to your Habitat instance, again follow the example shown as a default value in the field.

rootHostName – this value is used when installing multiple instances of Habitat, see the default text as an example of how to configure this field.

Click Install and the application will begin to download and configure Habitat, it will then run the npm install command in your solution install directory. Once complete you can then open your Habitat solution and run the gulp task.