Socket
Book a DemoInstallSign in
Socket

conso

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conso

Fast, Configurable, Intelligent web framework for node.

latest
Source
npmnpm
Version
1.4.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 17 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts