Earlier this afternoon, I thought of a funny way for a web framework to deliver content. Why? Because why not! I can have some fun once in a while, can't I?
Introducing, ChoirJS. An event-driven web framework created for laughs.
The source code can be found on
Usage
You can look at the
To be honest, I don't even know what I'm doing. I just wanted to do something today.
As of version 1.0.10, a bunch of necessary features has been added.
Using
Introducing, ChoirJS. An event-driven web framework created for laughs.
The source code can be found on
You must be registered for see links
and you can make use of it via
You must be registered for see links
.Usage
Code:
npm install choirjs
JavaScript:
const { Choir } = require('choirjs');
const app = new Choir(8080);
app.registry.add('/', 'index');
app.route.get.on('index', (req, res) => {
res.send('o7');
});
You must be registered for see links
files in the Github repository,To be honest, I don't even know what I'm doing. I just wanted to do something today.
As of version 1.0.10, a bunch of necessary features has been added.
- Routing with REGEX.
- Serving static files.
- Middleware support.
- Template engine support. Compatible with ones made for
You must be registered for see links.
Using
You must be registered for see links
with ChoirJS
JavaScript:
var pug = require('pug');
app.engine('pug', './views', pug.__express);
Last edited: