Skip to content

Run webserverλ︎

Run the webserver we use Leiningen, the Clojure build automation tool.

Run the webserverλ︎

In a command line terminal, navigate to the root of your project and type the following command

lein run 8000

This command will start an embedded Jetty web server that listens on http://localhost:8000.

Todo list project - lein run with port number

Open http://localhost:8000 in your browser and try out different pages, such at http://localhost:8000/hello, /goodbye or /makes-no-difference. It should not matter what page you visit, you should get the same response.

todo-list project in the browser

To stop the server, press Control-c in the terminal used to run the lein command.