a sample boilerplate for devref.ir built on top of vanila nodejs rest base
// on each request // i18n.configure({ // locales: ['en', 'de'], // directory: __dirname + '/locales' // }) // i18n.init(req, res);
// middleware // https://gist.github.com/darrenscerri/5c3b3dcbe4d370435cfa // https://gist.github.com/sylvainleris/6a051f2a9e7420b32b6db7d8d47b968b // https://muniftanjim.dev/blog/basic-middleware-pattern-in-javascript/ // https://stackoverflow.com/questions/39318027/how-to-write-a-middleware-class-in-node-js/45343992
// uWebsocket.js + fastJson // https://developer.mozilla.org/en-US/docs/Learn/Server-side/Node_server_without_framework