What is the good starting point to developing RESTful web service in Clojure?

前端 未结 5 845
闹比i
闹比i 2020-12-22 15:53

I am looking into something lightweight, that, at a minimum should support the following features:

  • Support for easy definition of actions through metadata
5条回答
  •  一生所求
    2020-12-22 16:36

    Just to provide an updated answer to this old question, currently (in 2018) I think Luminus provides an excellent starting point. It's using many of the libraries (ring, compojure, etc.) mentioned in previous answers, is modular and as close to "single package" as you can get with Clojure. Specifically for REST, take a look at compojure-api. Luminus recommends buddy for authentication, I've had good success using it both for traditional session-based auth as well as Oauth and stateless JWTs.

提交回复
热议问题