Clojure web frameworks for responsive apps

4.2k views Asked by At

I have recently inherited a non-finished web app written in Clojure, based on compojure and hiccup basically. It's a bad attempt to model some sort of MVC with OO style not in the FP style as seen here . So I bet to re-start the project almost from the scratch reusing the useful parts. I consider these alternatives:

The least breaking alternative would be Compojure+Enlive+jquery-pjax

Using a clojure web framework like Pedestal Any experiences about this?

The initial idea was to implement a RESTful API serving JSON so for the more elaborated solution I have Backbone+react.js in my mind for the front-end and Liberator for the back-end but it's likely to take longer to develop than a traditional server app.

Thoughts and alternatives taking into account that an Ajax experience is required please, thanks a lot!

1

There are 1 answers

3
Chiron On

I'm not sure what is the relation between RESTful API and responsive in your post. However ...

You have multiple options here: Pedestal, Liberator and Caribou.
If all what you need is a RESTful API, then I think Liberator is your best bet and it is not going to take longer time as you mentioned. I don't know how you got that impression.

Pedestal shines if you want to develop Single-Page applications but the framework in general requires a good time to grasp and understand how it is works.

Have a look at Caribou also. It is easy to use and feel familiar.

But again, it is your choice.