0.0.3 • Published 9 years ago

nya v0.0.3

Weekly downloads
33
License
-
Repository
github
Last release
9 years ago

NYA Framework

Dependency Status devDependency Status Code Climate Build Status

NYA - is a fullstack FRP framework for racket web based on kefir. No models, no controllers, no views - only streams and events.

Instalation

  npm install nya

Basic example

//Import nya.js
var nya = require('nya');

var requests = new nya.RequestStream('http');

var routes = new nya.RouteStream(requests); //automatic pipe binding

var index = routes.onGet().onUrl('/');

var responses = nya.ResponseStream(index); //automatic pipe binding

responses.onValue(function(request) {
    request.res.writeHead(200, {
        'Content-Type' : 'text/plain',
    });
    request.res.write('NYA!');
    request.res.end();  
});

Links

0.0.3

9 years ago

0.0.3-RC

9 years ago

0.0.2

9 years ago

0.0.2-alpha-3

9 years ago

0.0.2-alpha-2

9 years ago

0.0.2-alpha-1

9 years ago

0.0.2-alpha

9 years ago

0.0.1

9 years ago