Experience Sitecore ! | All posts tagged 'SIM'

Experience Sitecore !

More than 200 articles about the best DXP by Martin Miles

Know your tools: The easiest way to install Habitat - Habitat Solution Installer

Working with Helix often encourages you to perform quick look-ups into the live-standard-implementation - Habitat project. That's why you have to have it installed. I remember the first time I installed Sitecore Habitat in October 2015 and how complicated that seemed at glance.

Luckily we now got a nice tool, that does exactly what it is named for - Habitat Solution Installer written by Neil Shack. So, let's go ahead and install Habitat into a new non-traditional destination using that tool.

Firs of all, let's grab Habitat Solution Installer itself from Sitecore Marketplace. Once downloaded, run HabitatInstaller.exe.


First screen takes three most important Habitat setting that we usually need to change as well as asks for the solution root folder where it will install the code. Once Install is clicked - it will download an archive of master branch from Habitat GitHub repository.


Then it will extract downloaded archive into temporal folder. By the way, you may alternate both path to master archive and your temporal files folder by clicking Settings button on the first (main) screen.


After extracting files, it will run npm install so you need to have node installed as a prerequisite.


Once finished, Habitat Solution Installer will display confirmation box.


So, what it has done - it installed and configured project code folder. But what hasn't it done?

1. It does not install Sitecore. You need to have it installed as another prerequisite, so that you provide Sitecore web folder and hostname to installer as shown on first screenshot. The best way would be to install using SIM (marketplace link). While installing Sitecore, make sure you're installing the right version corresponding to to codebase at Habitat master branch, you may look it up at Habitat Wiki page.

2. Not just to say you need to install Sitecore itself, you also need to install Web Forms for Marketers of the version corresponding to you Sitecore instance. And to ensure WFFM installation not failing, you need to install MongoDB prior to. Luckily that can be done in one click using SIM:


Finally, when all above is done, you may run gulp tasks from Task (View => Other Windows => Task Runner Explorer in Visual Studio 2015). Since npm install was already done for you - tasks are loaded as normal:


That's it! After Sitecore items are deserialised into your Sitecore instance, you'll be able to run Habitat website (however do not forget to publish from master to web unless you run it in live mode). The final result comes in you browser:


Sitecore 8.0 Update 5 is released

Sitecore 8.0 Update 5 is released

Now with Mongo 3!

  • Support has been added for MongoDB 3.0.
  • The MongoDB driver has been upgraded to 1.10.
  • Generic security enhancements have been made.

It works fine with previous SIM (Sitecore Instance Manager) release revision 150618 as soon as you place webroot archive Sitecore 8.0 rev. 150812.zip into repository folder. To retrieve your repository folder with SIM navigate Settings -> Local Repository.

Know your tools: SIM - Sitecore Instance Manager

Sitecore Instance Manager (SIM) - the must-have tool for all Sitecore professionals and platform enthusiasts. It is a "Swiss army knife" for all types of activities related to installation and configuring Sitecore instances. So, what it does?

As it is obvious from its title, SIM simplifies installation of Sitecore, minimizing it to just few very intuitive clicks. SIM supports all versions of Sitecore, developers work tightly with platform vendor, so since recent they tend to synchronize SIM updates with new Sitecore releases. Oh, nearly forgot to mention, SIM has auto-update module that can update the program silently in background, or with a prompt, or just leave user alone once he prefers getting updates donу manually.

Here is the main screen of Sitecore Instance Manager:


You have all available instances listed, you can install new or remove existing, do some configuration changes and much more. SIM operates "web-folder" installation archives as they came form Sitecore, one can download zip and manually place it into specific folder (that is configurable in program settings) or can download and store any platform version directly from SDN. In that case he/she might need to type in SDN credentials and pick up exact Sitecore version from options drop-down. As soon as zip is downloaded, it can be installed.

The installation process occurs in few clicks and is show on several screenshots below. First of all, we select which version we are going to install from the list of stored in local repository. Also there are fields to specify instance name, hostname and the installation folder.


The program accurately installs files, restores database and sets appropriate SQL permissions, configures Application Pool and create config files with correct values.

SIM is great in that it allows not just install Sitecore itself, but also you may specify which modules you would like to install straight away, just by simply checking them from the list of available.



Apart from modules you may also install certain custom packages, likewise you may have a fully working website - both items and file system substructure packed within a package, so it may become available straight after the installation. As another example, I always install useful Sitecore adjustments with SIM in order to benefit out of them straight away.



Not only custom packages can be auto-installed, but also such called configuration presets. These are certain configuration patches, each addressing small but important setting, will be placed into App_Config/Include folder.



The installation itself does not take much time. Sitecore 8 takes approximately 1 minute in virtual machine on my MacBookPro. Significantly faster comparing with time spent on default installer.




SIM also have multiple useful shortcuts at one place, like links to important Sitecore folders, configuration tools, hosts editor, IIS recycle an many many more.




I would award SIM with the highest rate and highly advise to download and play with it, even if you do not regularly play with installation and instances.

Download: SIM on Sitecore Marketplace


Software every good Sitecore developer should be aware of

Got your top-spec developer's machine with Visual Studio installed, an instance of SQL Server with databases and Sitecore running on your IIS? So far, so good. You may now start working with platform. However, for real productivity you may need certain extras we'll now go through.

  1. Sitecore Rocks
  2. Team Development for Sitecore
  3. Reflector
  4. dotPeek
  5. Sitecore Instance Manager
  6. Luke
  7. RoboMongo

1. Sitecore Rocks
Today Rocks became a mature plugin allowing unbelievably wide range of Sitecore tasks and activities right from your Visual Studio. It grew from an idea of being able to manipulate Sitecore tree right from Solution Explorer (without permanent switches to browser and back), but with time acquired a mass of killing features, covering all aspects of working with Sitecore. Let's just name few of them:

  • navigate Sitecore tree within VS, create and edit items, layouts, renderings, templates (and their hierarchy), standard values, and also manage Media Library
  • built query analyzer (that was removed from 7.5 into a SPEAK component) that allows to operate all types of queries
  • troubleshooting features addressing tracing and debugging as well as log manager
  • view scheduled jobs
  • all about publishing
  • administration functions to perform maintenance for database, indexes etc; view resulting (after patches) web.config file
  • ability to read Lucene indexes, navigate documents and see field values, terms etc.
  • perform real-time search and replace globally from Query Analyzer
  • view history table
  • everything about creating and managing packages
  • create pipelines
  • all about caching
  • plugin repository to extend functionality further more by applying multiple plugins
Impressive list? But how to manage such wide functionality and not get lost?
Luckily, there is handy Commandy feature that allows you quickly search and access all the features just by a hotkey!

Links:
Sitecore Rocks on Visual Studio Gallery
Documentation page
28 days with Sitecore Rocks technical blog



2. Team Development for Sitecore - TDS
Another Visual Studio extension worth of several separate articles. It is manly focused on resolving troubles of having sitecore itens and sitecore code seperately, so it solves the issue by serializing items and keeping them in source control along with the code so that multiple people working at the same solution can have solid commits and fair versioning policy.

TDS can help you with many other handy tasks like item merging, code generation, packaging and auto deployment, config transformation and others. If you follow the link below - you'll get ver y self-descriptive home page explaining what exactly and how TDS does.

Links:
TDS download page


3. Reflector
Not Sitecore specific, but .NET-wide, Reflector is a tool that decompiles and reveals the code hidden in DLL libraries (if not obfuscated) and allows browse it and drill into system DLLs as well. We use it widely with Sitecore as Sitecore is not allways specific about ints internal architecture in official documentation, but knowing internals is the must for any good developer. A good example can be pipelines architecture - it is not quite documented (if at all) while from time to time one would need to override default behavior or add additional processors. Without knowing what exactly original code does that becomes not possible.

Links:
Reflector download page


4. dotPeek
One more .NET decompiler (which is free, unlike previously mentioned Reflector) have recently joined the market. Apart from doing decompiling job, it has several useful features, like ability to generate PDB files out of DLL, that makes possible debugging of external DLLs in Visual Studio.

  • Exporting decompiled code to Visual Studio projects
  • Support downloading code from source servers or PDB files generation
  • Quick jump to a type, assembly, symbol or type member
  • Effortless navigation to symbol declarations, implementations, derived and base symbols, and more
  • Accurate search for symbol usages with advanced presentation of search results
  • Overview of inheritance chains
  • Syntax highlighting and complete keyboard support
Please read another blog post Debugging and Inspecting Sitecore Libraries to how you can easily do that with dotPeek.
Links:
dotPeek official home page

5. Sitecore Instance Manager - SIM
I have a separate article about SIM, so please read that if you are not yet familiar with this brilliant tool. If briefly, SIM simplifies and automates a process of installing an instance of Sitecore (any version you may have in your local repo) to just few clicks, automatically sets up database and configs, installs additional packages and modules on top of instance and keeps multiple useful housekeeping links (to hosts, configs, iis, database etc.) in one place.

Links:
Sitecore Instance manager on Sitecore Marketplace
My previous article about Sitecore Instance Manager in this blog


6. Luke
Luke.NET is a tool to browse Lucene indexes, see the documents, fields and terms, try writing queries against index and see index physical structure. This functionality is partly covered with Rocks, as described above.


Links:
Luke page on CodePlex


7. RoboMongo
For everyone who is after Sitecore 7.5 (and later) and is working with xDB, Robomongo may seem quite handy. What is does is allows to see what you have in your Mongo instance. RoboMongo embeds the same JavaScript engine that powers MongoDB's mongo shell. It means that you can reuse your existing skills of MongoDB shell in RoboMongo. It provides you with syntax highlighting, auto-completion, different view modes (text, tree, custom), and more.There will be a separate article about it coming shortly.


Links:
Official page