Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
ChoirJS, an event-driven web framework created for laughs.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Jian" data-source="post: 449080" data-attributes="member: 6500"><p>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?</p><p></p><p>Introducing, <span style="font-size: 22px"><strong>ChoirJS</strong></span>. An event-driven web framework created for laughs.</p><p>The source code can be found on <a href="https://github.com/jtpox/ChoirJS" target="_blank">Github </a>and you can make use of it via <a href="https://www.npmjs.com/package/choirjs" target="_blank">NPM</a>.</p><p></p><p>Usage</p><p>[CODE]npm install choirjs[/CODE]</p><p></p><p>[CODE=javascript]</p><p>const { Choir } = require('choirjs');</p><p>const app = new Choir(8080);</p><p></p><p>app.registry.add('/', 'index');</p><p></p><p>app.route.get.on('index', (req, res) => {</p><p> res.send('o7');</p><p>});</p><p>[/CODE]</p><p>You can look at the <a href="https://github.com/jtpox/ChoirJS/tree/master/examples" target="_blank">example </a>files in the Github repository,</p><p></p><p>To be honest, I don't even know what I'm doing. I just wanted to do something today.</p><p></p><p>As of version 1.0.10, a bunch of necessary features has been added.</p><ul> <li data-xf-list-type="ul">Routing with REGEX.</li> <li data-xf-list-type="ul">Serving static files.</li> <li data-xf-list-type="ul">Middleware support.</li> <li data-xf-list-type="ul">Template engine support. Compatible with ones made for <a href="https://github.com/expressjs/express" target="_blank">Express</a>.</li> </ul><p></p><p>Using <a href="https://pugjs.org/" target="_blank">Pug</a> with ChoirJS</p><p>[CODE=javascript]var pug = require('pug');</p><p></p><p>app.engine('pug', './views', pug.__express);[/CODE]</p></blockquote><p></p>
[QUOTE="Jian, post: 449080, member: 6500"] 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, [SIZE=6][B]ChoirJS[/B][/SIZE]. An event-driven web framework created for laughs. The source code can be found on [URL='https://github.com/jtpox/ChoirJS']Github [/URL]and you can make use of it via [URL='https://www.npmjs.com/package/choirjs']NPM[/URL]. Usage [CODE]npm install choirjs[/CODE] [CODE=javascript] const { Choir } = require('choirjs'); const app = new Choir(8080); app.registry.add('/', 'index'); app.route.get.on('index', (req, res) => { res.send('o7'); }); [/CODE] You can look at the [URL='https://github.com/jtpox/ChoirJS/tree/master/examples']example [/URL]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. [LIST] [*]Routing with REGEX. [*]Serving static files. [*]Middleware support. [*]Template engine support. Compatible with ones made for [URL='https://github.com/expressjs/express']Express[/URL]. [/LIST] Using [URL='https://pugjs.org/']Pug[/URL] with ChoirJS [CODE=javascript]var pug = require('pug'); app.engine('pug', './views', pug.__express);[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
ChoirJS, an event-driven web framework created for laughs.
Top