tubyte
v0.0.6
Published
HTTP 3.0 Web Server
Downloads
3
Readme
Tubyte
Tubyte http web server written in Node in development (Alpha state)
Views
The html file must go in the views folder
Example
const Tubyte = require('tubyte');
let app = Tubyte();
const port = 1337;
const host = '127.0.0.1'
app.get('/', (req, res) => {
res.render('index', () => res.send());
});
app.get('/hello', (req, res) => {
res.write('Hello World!').send();
});
app.listenSSL(port, host, './cert.crt', './privkey.pem', () => console.log('Listening on :1337'));
// app.listen(port, host, () => console.log('Listening on :1337'));