calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
Muhammad Muhajir 2020-10-05T00:40:52.119300Z

Hi guys, I am trying to start a repl with lein ring server. I can't find a way to do that. I have been searching for the documentation about that. I am pretty new to clojure. If you guys could send me a reference where I can read more about that, that would be helpful. thanks 🙂

pez 2020-10-05T06:20:34.120700Z

Hello @muhajirframe, I'm not familiar with lein-ring. Will have a quick look and see what I can figure out.

pez 2020-10-05T06:25:49.121800Z

Seems like you can tell lein-ring to start an nrepl server for you: https://github.com/weavejester/lein-ring#web-server-options . Though it is not obvious to me how to provide the options.

pez 2020-10-05T06:39:49.123Z

OK. Figured it out. Put an :nrepl key in the :ring map of project.clj:

:ring {:handler what.ever/handler
         :nrepl {:start? true}}

pez 2020-10-05T06:41:41.124500Z

Then start the server (`lein ring server`) , wait for it to tell you that the nREPL server is started, and then connect Calva (`ctrl+alt+c ctrl+alt+c`) and choose Leiningen as project type.