oreoframe
v0.0.7
Published
node web mvc frame
Downloads
3
Readme
This is OreoFrame;
I recommend using the following directory structure
|dir |����src |��������controller |������������route.js |����app.js |����config |��������default.json
app.js
const {Server} = require("oreoframe");
const route = require("./src/controller/route");
const ser = new Server(route);
ser.init().noredis();
ser.start();
route.js
const {Route} = require("oreoframe");
const index = require("./IndexController"); //this is
Route.Route.get("/",new index());
IndexController
const Controller = require("oreoframe").Controller;
class IndexController extends Controller{
args() {
super.args();
}
view(){
return "index.html"
}
}
module.exports = IndexController;