0.2.0 • Published 9 years ago

scuz v0.2.0

Weekly downloads
5
License
Unlicense
Repository
github
Last release
9 years ago

scuz Build Status Test Coverage Code Climate

a restful web server with in-memory storage suitable for prototyping

example
var http = require('http');
var scuz = require('scuz');
var server = scuz();

http.get('http://localhost:1337/', function(res) {
  res.pipe(process.stdout);
  // {"error":false,"status":200,"message":"ok","body":{}}
}).on('error', console.log.bind(console));
configuration
environment variabledefaulttypedescription
SCUZ_STORAGE_NAMEscuz.jsonstringoverrides the default storage name
SCUZ_SAVE_INTERVALunsetintegerinterval value in milliseconds
SCUZ_SAVE_ON_EXITunsetn/asave in-memory storage to scuz.json on exit
SCUZ_LOAD_STORAGEunsetn/aload scuz.json into memory at bootstrap
SCUZ_PORT1337integerport to which the web server will be bound
notes

this api server doesn't support node 0.8 and lower, though that isn't likely to be a problem for anyone.

0.2.0

9 years ago

0.1.0

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago