0.0.6 • Published 2 years ago

tubyte v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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'));
0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago