title: Serving static files with restify
body: <p>I am learning to use Node.js. Currently, I have a folder structure that looks like the following:</p>
  
  <pre><code>index.html
  server.js
  client
    index.html
    subs
      index.html
      page.html
  res
    css
      style.css
    img
      profile.png
    js
      page.js
      jquery.min.js
  </code></pre>
  
  <p>server.js is my webserver code. I run this from a command-line using <code>node server.js</code>. The contents of that file are:</p>
  
  <pre><code>var restify = require('restify');
  
  var server = restify.createServer({
      name: 'Test App',
      version: '1.0.0'
  });
  
  server.use(restify.acceptParser(server.acceptable));
  server.use(restify.queryParser());
  server.use(restify.bodyParser());
  
  server.get('/echo/:name', function (req, res, next) {
      res.send(req.params);
      return next();
  });
  
  server.listen(2000, function () {
      console.log('%s running on %s', server.name, server.url);
  });
  </code></pre>
  
  <p>As you can see, this server relies on RESTIFY. I've been told I must use RESTIFY. However, I can't figure out how to serve static files. For instance, how do I server the *.html, *.css, *.png, and *.js files in my app?</p>
  
  <p>Thank you!</p>