To make it easier to build websites for Node.js, we've created a set of minimal libraries to get you going.
All you need to get started is access to node and can install packages with npm.
npm -g install proton micro
Create lib/webapp.js and add the following code:
var micro = require('micro'),
WebApp = exports.WebApp = micro.webapp(),
get = WebApp.get;
get('/', function (request, response) {
response.ok('text/html');
return 'hello, world';
});
Now run your app with Proton.
proton -r
You can now visit http://localhost:8080/ in your browser to see the text "hello, world".
The -r argument means that changes you make to your webapp will be automatically reloaded, making development faster.