npm install nawsnaws is not just another web server. It is a
naws is a webserver container. It wraps around koa.js and provides a standard set of integrated libraries to get you started quickly and efficiently.
Middlewares in naws operate using a shared context this.content.
To run the JSDC exhibits, first you need to install vagrant.
Once you have done so, follow these steps:
1. cd to the NAWS root directory
2. vagrant up
3. Brew a coffee, hug your cat(s), and watch some sappy love movie
4. vagrant ssh
5. sudo -s
6. cd talk
7. node and enjoy!
Slideshare link - Leveraging ZeroMQ for Node.js
naws come pre-packaged with a host of modules designed to reduce the time it takes for you to spin up a proper koa-based webapp or API service.
```
'use strict';
var naws = require('naws');
naws.router.setup(function () {
// setup router
});
naws.use(naws.router);
naws.use(naws.i18n);
naws.use(naws.render);
naws.use(naws.syslog);
naws.use(naws.session);
naws.run();
``
=======NAWS general web application framework
$ git clone git@github.com:soggie/naws.git naws
$ cd naws
$ npm link
$ cd $YOURPROJECT
$ git checkout -b v2 origin/v2
$ npm link naws
$ npm install -d
$ npm install swig --save
This will clone naws to a directory, and npm link it. Every time NAWS is updated just do a git pull on the naws` directory to get the latest updates.