Neat Paraskavedekatriaphobia's Meaning
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

bayon-core

0.0.3 • Public • Published

Bayon

Bayon is a node.js MVC framework based on expressjs and implemented in ECMAScript Harmony standard.

Get Started

 
'use strict';
 
// export Home
module.exports = Home;
 
// Define class
function Home() {};
 
Home.index = function() {
    this.send(200, 'Hello World!');
};
 

Quick Start

inside [app root] directory open and modify route.js as below

module.exports = {
    root: {
        handler: 'Greeting@talk', // say which controller will handler this
        path: '/', // path for client request
        method: 'GET' //
    }
};

inside [app root]/controller directory create a controller file name GreetingController.js

'use strict';
 
module.exports = Greeting;
 
function Greeting() {};
 
Greeting.talk = function() {
    this.send(200, 'Hello!'); // send 
};
 

License

MIT

install

npm i bayon-core

Downloadsweekly downloads

3

version

0.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar