Skip to content

Instantly share code, notes, and snippets.

@cookrn

cookrn/core.clj

Created Jul 27, 2011
Embed
What would you like to do?
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