Created
April 8, 2016 02:53
-
-
Save anonymous/be8e6b5eccfc7c5a31dcf9afbf807a2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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