Adding the Compojure dependency

Edit your project configuration project.clj and add compojure as a dependency.

The current version of Compojure is: [compojure "1.3.4"]

You can look up the version of Compojure on or any other Clojure library. is like Maven Central for Clojure.

The project.clj file should look as follows:

(defproject todo-list "0.1.0-SNAPSHOT"
  :description "A simple webapp in Clojure"
  :url ""
  :license {:name "Eclipse Public License"
            :url ""}
  :dependencies [[org.clojure/clojure "1.6.0"]
                 [ring "1.4.0-beta2"]
                 [compojure "1.3.4"]]
  :main todo-list.core
  :profiles {:dev
             {:main todo-list.core/-dev-main}})

You will need to kill Ctrl-c and restart the webserver as we are adding a library to the project.

lein run 8000

results matching ""

    No results matching ""