Configure main namespace

Set the default namespace for the Clojure project.

Edit the project.clj file and add :main todo-list.core configuration option.

Setting the default namespace will automatically call a function called -main when the Clojure project is run, i.e. via lein run

(defproject todo-list "0.1.0-SNAPSHOT"
  :description "A simple webapp using Ring"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.7.0"]
                 [ring "1.4.0"]]
  :main todo-list.core)

results matching ""

    No results matching ""