naws

2.1.4 • Public • Published

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:

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

Readme

Keywords

none

Package Sidebar

Install

npm i naws

Weekly Downloads

0

Version

2.1.4

License

ISC

Last publish

Collaborators

  • rubentan