1.1.0 • Published 8 years ago

modweb-server v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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