title: Setting up three expresss instances: admin, site and app
body: <p>Friends, I consider myself a javascript programmer at an intermediate level, but these questions will sound amateur, forgive me.</p>
  
  <p>I was doing reverse engineer in the Ghost.org blog plataform (CMS).. trying to understand how they did it, and I found that they have three instances of <code>express()</code>: parentApp, blogApp and adminApp.</p>
  
  <p><code>parentApp</code> is responsible for running the site, and the other two are for separate the <code>admin</code> and the <code>blog</code>.</p>
  
  <p>I tried to go further, but the code is a total noodles. So...</p>
  
  <p>I tried to do the same to understand how can i use this configuration if I ever need...</p>
  
  <p>First I created a major instance called <code>app.js</code>, and other 'minor' two: <code>site.js</code> and <code>admin.js</code>.</p>
  
  <p>I've set the template engine, the folder where each would have their viewes and sent the <code>app</code> instance to listen on port 3000 (as usual).</p>
  
  <p>Now comes the problem:</p>
  
  <p>The site or the admin is not running, and I want to find out how to make it run. I would have to create a server and listen to those instances too?</p>
  
  <p>This really puzzled me because I looked through their code and simply not been able to find as they did to listen only on parentApp and still cause the site to recognize routes, middleware, etc of the other instances.</p>
  
  <p>Thank u and i'm sorry for me not perfect english, i did my best.</p>