https://github.com/yetone/ove
A powerful Node.js web framework.
https://github.com/yetone/ove
Last synced: 3 months ago
JSON representation
A powerful Node.js web framework.
- Host: GitHub
- URL: https://github.com/yetone/ove
- Owner: yetone
- License: mit
- Created: 2014-11-14T17:33:00.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T10:20:53.000Z (about 9 years ago)
- Last Synced: 2025-12-02T00:35:34.027Z (6 months ago)
- Language: LiveScript
- Homepage:
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ove
===
[](https://codeship.com/projects/54852)
A powerful Node.js web framework.
## Installation
```
npm install ove
```
## Example
### Use LiveScript:
```js
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:
```js
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();
```