Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Leiningen plugin to start a web server in the current directory.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
spec/leiningen/spec
src/leiningen
.gitignore
LICENSE
README.md
project.clj

README.md

lein-httpd

A Leiningen plugin to start a web server in the current directory. Use it for HTML/CSS/JS prototyping, for transferring files to another machine, etc.

Usage

Add [lein-httpd "1.0.0"] into your global Leiningen config (~/.lein/profiles.clj) like so:

{:user {:plugins [[lein-httpd "1.0.0"]]}}

Start a web server in the current directory on the default port (8080):

$ lein httpd

Select a different port by supplying the port number on the command line:

$ lein httpd 8027
Something went wrong with that request. Please try again.