title: Parent and Child Websites hosted locally - MVC
body: <p>I have a MVC web application. Lets call it "Parent" website. In order to set up the website on my local machine, I go to IIS, create a new website and in the "edit website" screen, in "physical path" I give the location of the folder on my hard drive. That website works fine with few modifications with application pool, port number etc.. </p>
  
  <p>What I am trying to do after that is - to set up another "Child" website using the same code base. This child website runs off a single controller, few specific models, few specific views, but common service layer to parent website above.
  When I set up this new child website on my local machine, I would like it to act as a stand alone website, just picking up parts of the main code base that are relevant to its functionality ONLY. How do I do this in a efficient way so I have both Parent and Child websites running separately on IIS on my local machine with one common code base.</p>
  
  <p>This is what I tried but got only so far.. not sure if this even the right direction.</p>
  
  <p>I tried creating a new MVC "Area" for this child site, for example, I moved the ChildController, ChildModels and ChildViews into this new ChildArea. I was hoping this would somehow make it easy to separate parent and child websites and host them locally. In the main folder structure, (Parent), I have site.master page that works well for Parent website already hosted and working well. I also have a new site.master inside the new MVC area that I need the child website to take for display.</p>
  
  <p>I need some help and guidance on how I can achieve this. Thanks in advance for comments, solutions, feedback.</p>
  
  <p><img src="https://i.stack.imgur.com/lk9ho.jpg" alt="enter image description here"></p>