An HTTP Server Library written in Clojure.
For documentation on creating client applications, see Creating Client Applications
To run the specs
$ lein spec
To run the specs with the auto-runner
$ lein spec -a
The project comes with an example client application that satisfies Cob Spec. It is located at http-clj.app.cob-spec
.
-
Clone the Cob Spec project and start the Cob Spec server.
-
Start
http-clj
with thecob-spec
profile and the path the Cob Spec public directory.$ lein with-profile cob-spec run -d <path to cob_spec/public>
-
Run the Cob Spec specs. There is no need to configure
SERVER_START_COMMAND
orPUBLIC_DIR
.
With lein run
$ lein with-profile cob-spec run -d <directory> -p <port>
Via an Uberjar
$ lein with-profile cob-spec uberjar
$ java -jar target/http-clj-cob-spec.jar -d <directory> -p <port>
Specifies the port to listen on. The default is 5000.
Specifies the directory to serve files from. If absent, it will try to serve from ./public
in the current working directory.