Collection of JavaScript Framework Libraries for Node.js
Place the following code into an empty JavaScript file, example: app.js
.
'use strict'
// import kado
const kado = require('kado')
// create application
const app = kado.getInstance()
// create a webserver
const http = new kado.HyperText.HyperTextServer()
// register the webserver
app.http.addEngine('http', http.createServer(app.router))
// register a route
app.get('/', (req, res) => { res.end('Hello') })
// start the application and listen
app.start().then(() => app.listen())
After saving the file, execute the code by running the following command from the same folder as the JavaScript file.
node app
Once the command has executed, a web server that says "Hello" will be available
on port 3000
of your local machine, example: http://localhost:3000
.
See kado.org to go further.
Use your favorite package manager.
npm install kado
or
yarn add kado
- Single Node.js Module
- Compatible with Node.js 10 and above.
- Contains 51 libraries that cover a majority of coding tasks.
- Use libraries as needed and keep the code light.
- Consistent stable code that rarely changes.
- Complete reference documentation.
- Easy to learn, familiar, inspired by popular modules.
- Ready for continuous integration.
Visit kado.org
See the Kado Library List
Please see our bug tracker
Please see the CHANGELOG
Please see the Contribution Guidelines
Kado Copyright (C) 2013-2022 Bryan Tong, NULLIVEX LLC. All rights reserved. Kado is licensed under the Lesser GNU Public License version 3.0 or newer see LICENSE for a complete copy of applicable license