I think you need to require [ring.adapter.jetty :refer [run-jetty]]
Cause now you use the run-jetty function but it’s not coming from anywhere.
Then, you need to pass the routes as the handler to run-jetty:
(run-jetty app {:port 3000 ...})
And you’ll have to have added [ring "1.8.2"]
to your project dependencies as well. Or at least add [ring/ring-jetty-adapter "1.8.2"]
.
The call to run-jetty will start a Jetty web server that will use your compojure defined app routes to direct http requests to your handlers and return their requests.
So after that call, just go to: http://localhost:3000
and you should see your page.
By the way, if you just run your code, set join?
to true, but if you’re going to run it at the REPL then set it to false.