Installation
$ [sudo] npm install -g webjs-cli
Create a new app
$ webjs new my_app
Features
Call any service from any controller!
// No need to require your service! :Ovar fn = ; // [ X ]fn; // Simply use them in your controllers by the service name B|myService; // [ √ ]
Routes
/* * Routes Config */moduleexports // Examples '/': 'SampleController.getInfo' 'POST /user': 'UserController.create' // you may also render a view like this '/home': 'home'
Controllers
/* * SampleController */moduleexports //action { SampleService; res; } { res; }
Services
/* * SampleService */moduleexports //action { ... }