Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wwwmarcos/piei.js
- Owner: wwwmarcos
- License: mit
- Created: 2018-08-19T18:20:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-22T16:55:46.000Z (over 6 years ago)
- Last Synced: 2024-11-06T06:04:16.511Z (2 months ago)
- Topics: api, backend, http, http-server, javascript, nodejs, webframework
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# piei.js
just 4fun web framework# usage example
```js
const app = require('piei')
const PORT = 3000app.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}`)
})
```