Nocturnal Pajama Mutants
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    wns-mvc-packagepublic

    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.

    Features

    • Cotroller Server
    • Database ActiveRecord

    Requirements

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

    Installing

    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",
        "defaultController":"site",
        "errorPage": "site/error",
        "templateEngine": "Dust", // Or other template engine from wns-template-package
        "path": {
          "controllers": "controllers/",
          "views": "views/",
          "partials": "partials/"
        }
      }

    Keywords

    none

    install

    npm i wns-mvc-package

    Downloadsweekly downloads

    36

    version

    0.0.13

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar