Home

Node.js provides excellent libraries for interacting with networking protocols as well as implementations of the most common ones, HTTP/S is one of these. Since these libraries are fairly low-level, a lot needs to be done to these libraries to be able to build websites or net-based applications efficiently. Node.js has it's own solutions for that too - it has its own package manager, NPM with a huge ecosystem of packages.

Perhaps one of the most commonly used packages is the Express Framework. It provides an interface for creating HTTP applications very quickly, reliably and easily. This Boilerplate exposes a very similar setup to Express'. It is designed to simplify website development.


// Express
const express = require('express');
const app = express();

app.get('/', function (req, res) {
    res.send('Hello World');
});

app.listen(3000);
// Boilerplate
module.exports = function(router) {
    router.addRoute('get', '/', function (req, res) {
        res.send('Hello World');
    });
};

TL;DR, The Node.js Boilerplate simplifies your website project by providing you with tools to reduce the amount of code you need to write.

In fact the boilerplate runs out of the box with a preset website for you to try out.