Example Clojure project that implements a webserver with basic routing and templating capability using Jetty, Compojure, and Hiccup
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/server_example
target
test/server_example
CHANGELOG.md
README.md
project.clj

README.md

example-clojure-webserver-jetty-compojure-hiccup

Example Clojure project that implements a webserver with basic routing and templating capability using Jetty, Compojure, and Hiccup

Documentation

Full documentation about this project can be found at: Clojure webserver with Jetty, Compojure, and Hiccup

Installation

Install Leiningen then checkout this project

How to use:

run the following command in the root of the project:

lein run

navigate to http://localhost:3000 to see the homepage route. Navigate to an undefined route to execise 404 behaviour, e.g. http://localhost:3000/abc.