Step 1: Download MongoDB.


Step 2: Install Mongo DB ->  Installation Window


Step 3: Build Folder structure.


Create folders DB and Log in data folder.



Step 4: configure log path and db path from command line.

The command window is opened as Administrator (recommended).

Note: The path should match where the mongo dB installed in step-2.


Step 5: execute mongd.exe at specified db path which is configured earlier in previous step.

Note: The path should match where the mongo dB configured in step-4.


Step 6: After executing the mongod.exe. Open new command window / terminal

Create a service by using the sc.exe.

Note: The path should match where the mongo dB configured in step-4.

If the command terminal is not Administrator it gives error.

Normal mode.


Administrator mode.


Step 7: After Successfully created service, it should start.


Step 8:Mongo DB is CUI (Character user Interface) any db commands will run thru terminal.

For these GUI Tool (MONGOVUE) is available, this is trail version downloaded for demo purpose and installed.


GUI View.



Step 9: Integration with site core.

For this create VS solution / existing solution which you want to integrate mongo DB.

Open ConnectionStrings.config add connecting string as shown below



Step 10: Do the general process like after working on remaining like layouts, sub layouts or Controllers and views publish the VS solution.

Note: After publish the changes will impact in MongoDB analytics/Interactions based on timeout property / attribute which is in web.config (default is 20 min)


Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Fake DB

How to do unit testing for media items in Sitecore + xUnit testing : Fake DB

Unit testing in Sitecore is a tricky one since you need create an items in Fake dB. I didn’t find much information about Media items unit testing and below piece of code may help you! Read more…

Fake DB

PageContext item in Sitecore Fake DB + Unit test cases

I tried to set PageContext using  RenderingContext.EnterContext but didn’t work using (RenderingContext.EnterContext(new Rendering(), contextItem)) { I have set it using  ContextService.Get().Push(pageContext); Here is the code, which may help you using (Db db = new Db using (Db Read more…

Sitecore 8.2

Mocking a reference field in Sitecore Fake DB for Unit test cases

I’m working on Unit test cases and mocking a reference field could be a complex task. Here is the code, which may help you [Fact] public void ReferenceFieldMockingTest() { ID newTemplateId = ID.NewID; ID referenceItemId Read more…