Skip to content

Instantly share code, notes, and snippets.

@cookrn
Created July 27, 2011 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cookrn/1109995 to your computer and use it in GitHub Desktop.
Save cookrn/1109995 to your computer and use it in GitHub Desktop.
Your First Clojure Web App
(ns myfirstwebapp.core)
(defn app [req]
{:status 200
:headers {"content-Type" "text/html"}
:body "Hello World!"})
(defproject myfirstwebapp "0.0.1"
:description "A hello world for a Ring based web app"
:dependencies [[org.clojure/clojure "1.2.1"]
[ring "0.3.11"]]
:dev-dependencies [[lein-ring "0.4.5"]]
:ring {:handler myfirstwebapp.core/app})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment