An express-based Node.js web application bootstrapping module, extends kraken-js.
on Linux/Unix
$ npm install yog
on Windows
open a cmd
npm install yog
.
├── app.js
├── config # some `map.json` and `config.json`
├── controllers
├── lib
├── models
├── public # static
└── views # views or template
app.js
var yog = require('yog');
var app = require('express')();
var PORT = 4000;
app.use(yog()).listen(PORT, function () {
console.log('Listening *:' + PORT);
});
detail see project fex-team/yog-app
var s = 123;
function test(){
alert(s);
}