Baskom js
Fun nodejs framework with easy to use.
Features
- Robust routing.
- Middleware Support.
- Controller decorator support.
- Template engine support (ejs, handlebars, pug, jsx and more).
Requerement
Nodejs v8.x or higher
Installation
$ npm i baskom
//or
$ yarn add baskom
Usage
const baskom = require('baskom');
const app = baskom();
app.get('/', (req, res) => {
res.send('Hello World');
});
app.listen(3000, () => {
console.log('> Running on ' + 3000);
});
METHODS => GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, ALL.
app[METHODS](path, ...handlers);