Permalink
Browse files

add Procfile, reformat

  • Loading branch information...
1 parent af62392 commit 9fc249d7e43a097b52a5ee5fa48dc4f1f80cda58 gabrtv committed May 3, 2012
Showing with 35 additions and 0 deletions.
  1. +1 −0 Procfile
  2. +4 −0 README.md
  3. +14 −0 project.clj
  4. +10 −0 src/helloworld/web.clj
  5. +6 −0 test/helloworld/test/core.clj
View
@@ -0,0 +1 @@
+web: lein trampoline run -m helloworld.web $PORT
View
@@ -0,0 +1,4 @@
+example-clojure-ring
+====================
+
+Example Clojure/Ring application for use with OpDemand.
View
@@ -0,0 +1,14 @@
+(defproject helloworld "1.0.0-SNAPSHOT"
+ :description "OpDemand Example Application"
+ :dependencies [
+ [org.clojure/clojure "1.2.1"]
+ [ring/ring-core "1.0.0"]
+ [ring/ring-jetty-adapter "1.0.0"]
+ ]
+ :dev-dependencies [
+ [lein-ring "0.5.4"]
+ [org.clojure/clojure-contrib "1.2.0"]
+ ]
+ :ring {:handler helloworld.web/handler}
+ )
+
View
@@ -0,0 +1,10 @@
+(ns helloworld.web
+ (:use ring.adapter.jetty))
+
+(defn handler [request]
+ {:status 200
+ :headers {"Content-Type" "text/html"}
+ :body "Powered by OpDemand"})
+
+
+
@@ -0,0 +1,6 @@
+(ns helloworld.test.core
+ (:use [helloworld.core])
+ (:use [clojure.test]))
+
+(deftest replace-me ;; FIXME: write
+ (is false "No tests have been written."))

0 comments on commit 9fc249d

Please sign in to comment.