ChoirJS, an event-driven web framework created for laughs.

Jian

Resident Weeb
Contributor
Messages
671
Likes
430
#1
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 [ To view this link you must register here. ] and you can make use of it via [ To view this link you must register here. ] .

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 can look at the [ To view this link you must register here. ] 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 [ To view this link you must register here. ] .

Using [ To view this link you must register here. ] with ChoirJS
JavaScript:
var pug = require('pug');

app.engine('pug', './views', pug.__express);
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top