WDWS is a thin layer of abstraction over a filesystem directory. It is intended to allow for a user to perform actions (like reading and writing files) in the directory in a safe and simple manner.
WDWS uses Web Sockets (via Socket.io) to layer a lightweight protocol into the service. At the same time, the WDWS server acts as a static web host, allowing you to simultaneously modify and view your work.
npm install wdws
First, you'll need a WDWS server running.
var wdws = require('wdws');
var FSProvider = require('wdws/providers/fs');
var server = new wdws.Server({
provider: new FSProvider({
root: __dirname + '/storage'
})
});
server.listen(8080);
See [wdws-client] for information about how to connect to and perform commands on a WDWS server.
- Use the provider as a static web host as well as a protocol
- Add support for "plugins" for things like Bower, Git
- Write a browser client to cleanly wrap the protocol
- See if we can make a more standard callback pattern
- Paths should be absolute to the root, not fully resolved
- Authentication/Authorization