Permalink
Browse files

clean up doc and add server script.

  • Loading branch information...
1 parent 9c1c512 commit b712ff00b32e10bef1f7d1e260b7ba87f10e8b36 @aeden committed May 10, 2012
Showing with 30 additions and 13 deletions.
  1. +0 −13 docstore/clojure/docstore/README
  2. +27 −0 docstore/clojure/docstore/README.md
  3. +3 −0 docstore/clojure/docstore/bin/server.clj
@@ -1,13 +0,0 @@
-# docstore
-
-Web service for storing a JSON document
-
-## Usage
-
-FIXME: write
-
-## License
-
-Copyright (C) 2012 Anthony Eden
-
-Distributed under the MIT License.
@@ -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.
@@ -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.