1.4.2 • Published 7 years ago

conso v1.4.2

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

npm.io

Fast, Configurable, Intelligent web framework for node.

NPM version build status David deps NPM download

Installation

$ npm install conso -g

Features

  • ✔︎ 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-generator
  • Create the app:

$ conso init showcase && cd showcase
  • Install dependencies:

$ npm install
  • Start 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

MIT

1.4.2

7 years ago

1.4.1

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.0

7 years ago

1.1.3

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.18

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago