bash
$ npm init
bash
$ npm install tehuti
script
const Tehuti = require('tehuti');
const app = new Tehuti();
app.set('port', 3000);
app.get('/', (req, res) => {
res.send('Hello, Tehuti!');
});
app.listen(app.get('port'), () => {
console.log(`Server is running on port ${app.get('port')}`);
});
bash
$ node app.js