MVC package/bundle for WNS Middleware

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...

$ wnspm install mvc

Inside your server or application directory just type:

$ npm install wns-mvc-package

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/"