Skip to content

damonkelley/http-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-clj Build Status

An HTTP Server Library written in Clojure.

Library Usage

For documentation on creating client applications, see Creating Client Applications

Testing

To run the specs

$ lein spec

To run the specs with the auto-runner

$ lein spec -a

Cob Spec

The project comes with an example client application that satisfies Cob Spec. It is located at http-clj.app.cob-spec.

Running Cob Spec against the server

  1. Clone the Cob Spec project and start the Cob Spec server.

  2. Start http-clj with the cob-spec profile and the path the Cob Spec public directory.

    $ lein with-profile cob-spec run -d <path to cob_spec/public>
  3. Run the Cob Spec specs. There is no need to configure SERVER_START_COMMAND or PUBLIC_DIR.

Running http-clj.cob-spec

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>

Command line options

-p --port PORT

Specifies the port to listen on. The default is 5000.

-d --directory DIR

Specifies the directory to serve files from. If absent, it will try to serve from ./public in the current working directory.

About

An HTTP Server Library written in Clojure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published