title: Understanding microservices using Express.js and docker
body: <p>I am new to node.js and docker as well as the microservices architecture.
  I am trying to understand what microservices architecture actually is and theoretically I do understand what microservices arch is.Please see the following implementation
  This is the <strong>index.js</strong> file:</p>
  
  <pre><code>var express = require("express"); 
  var app = express();
  var service1 = require("./service1");
  var service2 = require("./service2");
  app.use("/serviceonerequest",service1);
  app.use("/servicetwo",service2);
  app.listen(3000,function(){
      console.log("listening on port 3000");
  });
  </code></pre>
  
  <p>The file <strong>service1</strong>:</p>
  
  <pre><code>var express = require("express");
  var router = express.Router();
  router.use(express.json());
  router.get("/",(req,res)=&gt;{
      //perform some service here
      res.send("in the get method of service 1");
      res.end();
  });        
  router.post("/letsPost",(req,res)=&gt;{
      res.send(req.body);
      res.end("in post method here");
  })
  module.exports = router;
  </code></pre>
  
  <p>The file <strong>service2:</strong></p>
  
  <pre><code>var express = require("express");
  var router = express.Router();       
  router.use(express.json());
  router.get("/",(req,res)=&gt;{
      //perform some service here
      res.end("in the GET method for service 2");
  });    
  router.post("/postservice2",(req,res)=&gt;{
      res.send(req.body);
  });    
  module.exports = router;
  </code></pre>
  
  <ol>
  <li>Does the above qualifies as 'micro service architecture'?Since there are two services and they can be accessed through the 'api-gateway' index.js?</li>
  <li>I have read the basic tutorial of Docker.Is it possible to have the above three "modules" in separate containers?</li>
  <li>If the above does not qualify as a microservice what should be done to convert the above sample into microservices?</li>
  </ol>