I have been working with eclipse + counterclockwise for clojure development, using only the default template for non-web based work. However, I would now like to connect my environment to my localhost apache server. I began a new project, and changed the template from default to clojure-app and it did give me a web based framework in the project.clj file, as follows:
(defproject guestbook "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.6.0"]
[compojure "1.1.6"]
[hiccup "1.0.5"]
[ring-server "0.3.1"]]
:plugins [[lein-ring "0.8.10"]]
:ring {:handler guestbook.handler/app
:init guestbook.handler/init
:destroy guestbook.handler/destroy}
:aot :all
:profiles
{:production
{:ring
{:open-browser? true, :stacktraces? false, :auto-reload? false}}
:dev
{:dependencies [[ring-mock "0.1.5"] [ring/ring-devel "1.2.1"]]}})
Next, I try to set up ring through lein ring server in the terminal. But I get this error: "'ring' is not a task. See 'lein help'." I am not sure how to proceed, or exactly what I can do to get the localhost server up.