This is a crummy first attempt at a node.js server. It just provides a RESTful API to storing plaintext data in "bins" on a server. The bins are backed by a git repository, so that it's impossible to incur data loss from use of the API, though actually retrieving old revisions of bins is not currently possible.
To run tests:
- Enter the
To run the server:
From the root directory, run e.g.
node run-server.js 8000 /var/footo run the server on port 8000 using the git repository at
/var/fooas the backing store.
PUTrequests to URLs to retrieve and set the value of bins, e.g.
PUT /foowith a request body to set the value of the
GET /footo retrieve it.
As you issue new
PUTrequests, note that a new revision is created in the backing git repository for each