Skip to content

Instantly share code, notes, and snippets.

Created April 8, 2016 02:53
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 anonymous/be8e6b5eccfc7c5a31dcf9afbf807a2b to your computer and use it in GitHub Desktop.
Save anonymous/be8e6b5eccfc7c5a31dcf9afbf807a2b to your computer and use it in GitHub Desktop.
user=> (use 'ring.adapter.jetty)
2016-04-07 19:50:19.345:INFO::nREPL-worker-1: Logging initialized @65186ms
nil
user=> (require 'hello-ring.core)
nil
user=> (run-jetty handler {:port 3000})
CompilerException java.lang.RuntimeException: Unable to resolve symbol: handler in this context, compiling:(C:\Users\clush\AppData\Local\Temp\form-init1236118457988782170.clj:1:1)
--------------
(ns hello-ring.core)
(defn handler [request]
{:status 200
:headers {"Content-Type" "text/html"}
:body "Hello World"})
---------------
filepath to the above
path/hello-ring/src/hello-ring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment