私は最初のWebアプリをcompojureで作成しようとしています。私はFile-New-Project, Clojure Project
ccwを使用しており、「compojure」ライニンゲンテンプレートを使用しています。プロジェクト.cljは次のようになります
(defproject asdf "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.1.5"]]
:plugins [[lein-ring "0.8.2"]]
:ring {:handler asdf.handler/app}
:profiles
{:dev {:dependencies [[ring-mock "0.1.3"]]}})
src / asdf/handler.cljは次のようになります
(ns asdf.handler
(:use compojure.core)
(:require [compojure.handler :as handler]
[compojure.route :as route]))
(defroutes app-routes
(GET "/" [] "Hello World")
(route/not-found "Not Found"))
(def app
(handler/site app-routes))
コマンドラインからを使用してこれを実行できることがわかりましlein ring server
たが、Eclipseからこれを実行する方法がわかりません。もちろん、実行だけでなく、デバッグやブレークポイントの設定などもできるようにしたいと思っています。Eclipseでこれを行う方法はありますか?または、そうでない場合は、IntelliJ / La-Clojureはどうですか?(今のところ、私はemacsを少し恐れていますが、それが非常に単純な場合は、試してみます)。
または、これはcompojureアプリの典型的な開発プロセスではありませんか?(そうでない場合は、何ですか?ただ走っlein ring server
て祈るだけですか?)
それが違いを生むなら、これはWin7にあります。