ove

0.3.2 • Public • Published

ove

A powerful Node.js web framework.

Installation

npm install ove

Example

Use LiveScript:

require! \ove
app = ove!
 
app.use (next) ->
    console.log '%s [%s] %s', new Date, @method, @url
    next!
 
app.get \/ ->
    @send 'Hello ove!'
 
app.get \/user/:uid/ ->
    @json do
        uid: @params.uid
 
app.post \/user/create/ ->
    @json @form
 
app.run!

Use JavaScript:

var ove = require('ove');
app = ove();
 
app.use(function(next) {
    console.log('%s [%s] %s', new Date(), this.method, this.url);
    next();
});
 
app.get('/', function() {
    this.send('Hello ove!');
});
 
app.get('/user/:uid/', function() {
    this.json({
        uid: this.params.uid
    });
});
 
app.post('/user/create/', function() {
    this.json(this.form);
});
 
app.run();

Package Sidebar

Install

npm i ove

Weekly Downloads

31

Version

0.3.2

License

MIT

Last publish

Collaborators

  • yetone