Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clojure web frameworks for responsive apps

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!

like image 241
Jaime Agudo Avatar asked Jan 02 '14 02:01

Jaime Agudo


People also ask

Is clojure good for frontend?

It features a native implementation for . NET and a compiler for JavaScript, expanding its use possibilities. ClojureScript makes it especially interesting for developers looking to use a language to create web-based applications' frontend and backend.

Is clojure a framework?

Clojure Web Development Made SimpleLuminus is a Clojure micro-framework based on a set of lightweight libraries. It aims to provide a robust, scalable, and easy to use platform. With Luminus you can focus on developing your app the way you want without any distractions.

What is a web framework?

A web framework is a software library that enables developers to write software that runs on the web. Common areas where developers use web frameworks are: Backend: The software that runs on servers and serves web sites, web apps, and also APIs for the exchange of data.


1 Answers

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.

like image 173
Chiron Avatar answered Sep 29 '22 05:09

Chiron