coffeemate edited this page Mar 10, 2011 · 3 revisions
Clone this wiki locally

About Install Quickstart Documentation Guide Source


If you installed Meryl sucessfully, now you are ready to get your feet wet. Create a file named 'app.js' with the copy of contents below.

// app.js

var meryl = require('meryl');

meryl.h('GET /{yourname}?', function (req, resp) {
  resp.end('Hello, ' + req.params.yourname || 'World');


Ok, let's run it.

$ node app.js

Now, go hit your http client with the url http://localhost:3000, also try http://localhost:3000/meryl and guess what you will see.