Skip to content

GavinDmello/celer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Celer   Build Status  Coverage Status

A very simple REST framework implementation based on pure string matching and events.


Here is an example of the the usage :-

const Celer = require('celer')
const celer = new Celer()

const PORT = 8888

celer.get('/hi', function(req, res) {
    res.send('Hello World')
})

celer.post('/hi', function(req, res) {
    res.send('Hello World')
})

celer.listen(PORT, function() {
    console.log("Server listening on: http://localhost:%s", PORT)
})

LICENSE

MIT