modweb-server
v1.1.0
Published
Server that takes care of cookies, compression, etc. Everything but the modweb site object.
Downloads
3
Readme
modweb-server
Server that takes care of cookies, compression, etc. Everything but the modweb site object.
Examples
You can run modweb-server
in the directory containing site.js
.
You can run modweb-server /path/to/site.js
in any directory.
You can use the exposed server like this:
var Server = require("modweb-server");
// load site.json
var site = require("./site");
// start server
var server = new Server(site);
server.start();
License
MIT