Appix 1.0.0-beta
- Es6 Node.js framework dev version
- Lightweight application framework with dyependency injection for node js
- This application framework is improved version of mvcjs nodejs framework
Features
- Appix follow reactive design pattern.
- Catch all runtime/syntax errors
- Has a dependency injection
- Built on top of ES6
Hello world example in appix
-
npm install appix
-
app/env.json
- app/index.js
'use strict';let di = ;let Bootstrap = di;// bootstrap applicationlet init = listenPort: 9000 appPath: __dirname + '/';// set bootstrapped instance under custom namedi;// get router componentlet router = init;// add some routes// Route actions are case sensitive!router;// run serverinit;
- app/controllers/home.js
'use strict';let di = ;let Controller = di;// Controllers can be inherited as many levels as you need { return this; } { return this; } { return 'Hello world'; }moduleexports = Home;
- run node app/index.js
- open localhost:9000