Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wwwmarcos/piei.js

[just 4fun] web framework
https://github.com/wwwmarcos/piei.js

api backend http http-server javascript nodejs webframework

Last synced: about 2 months ago
JSON representation

[just 4fun] web framework

Awesome Lists containing this project

README

        

# piei.js
just 4fun web framework

# usage example
```js
const app = require('piei')
const PORT = 3000

app.route({
method: 'GET',
url: '/home',
handler: (req, res) => res.end('home2')
})

app.route({
method: 'POST',
url: '/home',
handler: (req, res) => {
console.log('body', req.body)
res.end('ok')
}
})

app.listen(PORT, 'localhost', () => {
console.log(`up ${PORT}`)
})
```