A simple modular framework that uses exclusively the latest JavaScript syntax (ES6+).
Production Ready: No
This is 0.x beta software. Until version 1.x the API is considered UNSTABLE
npm install app-next
-
Implemented:
- Auto-loading of
JSON
orYAML
configuration files - DbAdapter, Model and Schema management for
mongodb
usingmongoose
- Logging using
winston
- Web server using
koa
- A routing system using
koa-joi-router
- Components with auto-loading, see Components
- Auto-loading of
-
Next:
- implement a plugins system
- implement a views mangement system
- implement a CLI interface
app-next-cli
Components are simple modules that are automatically loaded and wired to the application instance, extending it's library and providing their own routes and models.
app-next-module
provides basic module functionnality, it is not required that modules extend from it, but it's strongly recommended
Considering a simple application named my-app
with the following basic code
index.js
// index.js
var AppNext = require('app-next');
class MyApp extends AppNext {
}
module.exports = exports = MyApp;
start.js
require('my-app').start();
config.yml
server:
port: 4000
logs:
transports:
console:
level: 'debug'
db:
host: 192.168.99.100
npm install app-next
npm install my-app-users
npm install my-app-articles
node start.js
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Aboubakr Gasmi mailto:g13013@gmail.com && (AppNext Contributors)
MIT