Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Commit

Permalink
clean up doc and add server script.
Browse files Browse the repository at this point in the history
  • Loading branch information
aeden committed May 10, 2012
1 parent 9c1c512 commit b712ff0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
13 changes: 0 additions & 13 deletions docstore/clojure/docstore/README

This file was deleted.

27 changes: 27 additions & 0 deletions docstore/clojure/docstore/README.md
@@ -0,0 +1,27 @@
# docstore

Web service for storing a JSON document

## Usage

Install leiningen:

brew install leiningen

Download required dependencies:

lein deps

Run the service:

lein exec bin/server.clj

Call the service from curl:

curl -i "http://127.0.0.1:3000/a-document-name -d '{"foo":"bar"}'

## License

Copyright (C) 2012 Anthony Eden

Distributed under the MIT License.
3 changes: 3 additions & 0 deletions docstore/clojure/docstore/bin/server.clj
@@ -0,0 +1,3 @@
(use 'ring.adapter.jetty)
(use 'docstore.core)
(run-jetty app {:port 3000})

0 comments on commit b712ff0

Please sign in to comment.