title: Serving static files with express/nodejs
body: <p>I've set up static files to be served like this:</p>
  
  <pre><code>app.use(express.static(__dirname));
  
  app.get('/', function(req, res) {
      res.locals.message = 'Hello!';
      res.render('index');
  });
  </code></pre>
  
  <p>And this seems to work. Is this how it is usually done?
  I am a bit confused as to if <code>static</code> starts its own server on the same port, and if that is the case, is it a good idea?</p>