diff --git a/handler.clj b/handler.clj new file mode 100644 index 0000000..a659307 --- /dev/null +++ b/handler.clj @@ -0,0 +1,18 @@ +(ns luduverse.handler + (:require [compojure.core :refer [defroutes]] + [compojure.route :as route] + [noir.util.middleware :as middleware])) + +(defroutes core-routes + (route/resources "/") + (route/not-found "Nothing here ...")) + +(defn init []) + +(defn destroy []) + +(def app (middleware/app-handler + [app-routes] + :middleware [] + :access-rules [] + :formats [:json-kw :edn])) diff --git a/project.clj b/project.clj index 350edf5..3ffc635 100644 --- a/project.clj +++ b/project.clj @@ -1,6 +1,20 @@ (defproject luduverse "0.1.0-SNAPSHOT" - :description "FIXME: write description" - :url "http://example.com/FIXME" + :description "Find Ludum Dare games with a nice search bar" + :url "http://luduverse.clojurecup.com/" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} - :dependencies [[org.clojure/clojure "1.6.0"]]) + :dependencies [[org.clojure/clojure "1.6.0"] + [ring-server "0.3.1"] + [lib-noir "0.8.9"] + [compojure "1.1.9"] + [enlive "1.1.5"] + [me.raynes/fs "1.4.6"]] + :main luduverse.core + :plugins [[lein-ring "0.8.10"]] + :ring {:handler luduverse.handler/app + :init luduverse.handler/init + :destroy luduverse.handler/destroy + :open-browser? false} + :profiles {:production {:ring {:stacktrace? false}} + :dev {:ring {:auto-reload? true + :auto-refresh? true}}})