0.2.0 • Published 10 years ago

scuz v0.2.0

Weekly downloads
5
License
Unlicense
Repository
github
Last release
10 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

10 years ago

0.1.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago