2.1.4 • Published 8 years ago
naws v2.1.4
NAWS - Not Another Web Server
naws
is not just another web server. It is a
What is NAWS
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
Middlewares in naws
operate using a shared context this.content
.
JSDC Talk
To run the JSDC exhibits, first you need to install vagrant.
Once you have done so, follow these steps:
cd
to the NAWS root directoryvagrant up
- Brew a coffee, hug your cat(s), and watch some sappy love movie
vagrant ssh
sudo -s
cd talk
node <exhibit-filename>
and enjoy!
Slideshare link - Leveraging ZeroMQ for Node.js
NAWS Guide
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.
Example
'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
Usage
$ 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.