jsbk is a framework reminiscent to ExpressJS, used for handling requests and responses. Example:
const backjs = require('jsbk');
const app = new backjs.App();
const endpoint = new backjs.Endpoint({
url: '/',
method: 'GET'
});
endpoint.default((req, res) => {
res.setStatus(200).headers({
'Content-type': 'application/json'
})
res.json({
textCapitalized: req.body.toUpperCase()
})
});
app.bind(endpoint);
app.listen(3000);