conso v1.4.2

Fast, Configurable, Intelligent web framework for node.
Installation
$ npm install conso -gFeatures
- ✔︎ Annotation
- ✔︎ Dependency Injection
- ✔ Restful API
- ✔︎ Configurable
- ✔︎ Async/Await
- ✔︎ Database Support Using waterline
Example
you can mapping http://localhost:3000/home/user/:uid via code below
let {Annotation} = require('conso');
let UserModel = require('../model/UserModel');
let {route, get, model} = Annotation;
@route('/home')
class Index {
@model(UserModel)
user;
@get('/user/:uid')
async homePage(ctx, next) {
let _user = await this.user.findOne({uid: ctx.params.id});
// await ctx.render('index', {user:_user});
ctx.json({user:_user});
}
}Quick Start
conso has a built-in generator which you can use that to generate an application as shown below:
- Install the executable.
$ npm install -g conso-generatorCreate the app:
$ conso init showcase && cd showcaseInstall dependencies:
$ npm installStart the server:
$ npm start Then Open http://localhost:3000
Docs & Community
This project uses JSDoc. For the full public API documentation, clone the repository and run
npm run docs. This will run JSDoc with the proper options and output the documentation to out/.
Coming soon! Please expecting!
License
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago