I am working with Gary Johnson. Here is a great web app dev skeleton he created.
https://gitlab.com/lambdatronic/clojure-webapp-template Sat, Nov 17, 2018, 4:36 PM Oliver Muellerklein <omuellerkl...@berkeley.edu> wrote: > Hello, > > I also recently started learning Clojure and got throw into developing a > web app using Ring and Clojurescript. Can we be something like pen pal but > for Clojure dev? I have someone guiding me through a lot of the Clojure but > it would be so helpful I think to both of us if we could bounce ideas and > get help etc. > > Do you use Cider? It's great. You can great a Clojure REPL as you develop. > I'm not sure what the answer to your problem is. But I think Leinegein is > always looking for a deps.edn file right? > > -Oliver > > On Sat, Nov 17, 2018, 2:02 PM Thais Lima <thaisliso...@gmail.com> wrote: > >> Hi, >> >> I've started learning Clojure and I am creating a simple web application >> using Compojure and Ring. >> I have refs defined in my core.clj like this: >> >> (def my-ref1 (ref {})) >> (def my-ref2 (ref {})) >> (def my-ref3 (ref 0)) >> >> >> And in my handler.clj, I call the functions from my core namespace that >> change those refs inside a dosync. >> >> The problem is: I've created tests for my handler and for my core, when I >> ran each of them separately, everything works fine. >> But when I ran >> >> lein test >> >> I get errors for my handler-test, because my refs were modified by the >> core-test and this messes up my expected results. >> >> Besides that problem, I wonder if there is a proper way of defining those >> refs in ring initialization. >> >> What is the proper way of initializing refs in a project? >> >> Thank you, >> Thais >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clojure@googlegroups.com >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.