node package manager


WNS's MVC Package (Official)

A powerful package for WNS Middleware supported by WNS Team that contains components to build MVC-structured applications.

This package requires a HTTP package like wns-http-package running on the parent module.


  • Cotroller Server
  • Database ActiveRecord


  • Node.JS + NPM
  • WNS Middleware v0.0.93+
  • WNS HTTP Package v0.1.2+


Enter your application's directory...

Installing with WNS Package Manager
$ wnspm install mvc
Installing with NPM

Inside your server or application directory just type:

$ npm install wns-mvc-package

Setting up MVC to you application

Edit your app's config.json and insert inside the component section, this code:

  // HTTP component configuration 
  "controller": {
    "class": "wnControllerServer",
    "errorPage": "site/error",
    "templateEngine": "Dust", // Or other template engine from wns-template-package 
    "path": {
      "controllers": "controllers/",
      "views": "views/",
      "partials": "partials/"