wns-express-package

Express interface package/bundle for WNS Middleware

Usage no npm install needed!

<script type="module">
  import wnsExpressPackage from 'https://cdn.skypack.dev/wns-express-package';
</script>

README

WNS's Express Package (Alpha)

A powerful package for WNS Middleware supported by WNS Team that provides an interface to use Express.

Features

  • Express Server
  • Express Controller

Requirements

  • Node.JS + NPM
  • WNS Middleware v0.0.8+

Installing

Enter your server/application's directory...

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

Inside your server or application directory just type:

$ npm install wns-express-package express

Setting up to your HTTP server

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

  // Example of express configuration
  "express": {
    "class": "wnExpress", // OR wnHttps for HTTPS
    "port": 3000,
    "use": {
        //"express.cookieParser": [],
        //"express.bodyParser": [],
        //"express.methodOverride": [],
        //"app.router":true
    }
  }