Re:Clojure, the Good Parts
by joesmo on Tuesday April 19, 2016 @04:14PM
(#11529915)
Any recommendations for routing / handling web requests? The article doesn't mention anything in this category.
[ Parent
| on HN ]
Compojure is pretty standard for routing on top of the simple Ring abstraction.
I start projects with the template:
lein new compojure my-app
Ring quickstart: https://github.com/ring-clojure/ring/wikiRing API docs: http://ring-clojure.github.io/ring/
I like bidi's data structure oriented idea.
https://github.com/juxt/bidi
If you're just looking for a starter kit with everything included, consider Luminus. It gather a bunch of libs together and shows you how they interoperate to handle web requests.
Re:Clojure, the Good Parts
by StreamBright on Tuesday April 19, 2016 @05:05PM
(#11530423)
One library that is pretty neat:
Re:Clojure, the Good Parts
by kumarshantanu on Wednesday April 20, 2016 @01:10AM
(#11532383)
Shameless plug: If you need really-fast route matching, consider https://github.com/kumarshantanu/calfpath (performance benchmarks are included)
FYI - various recommendations are made in this Clojure radar: https://juxt.pro/radar.html (disclaimer, I was an author).