Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clojure REST API Frameworks [closed]

Tags:

rest

clojure

I'm a Python developer taking the plunge into Clojure and decided that taking on a real project is they best way to get started (after learning syntax of course). I decided to build a REST API for a project that I'm working on. Things that are worth knowing:

  • The database already exists.
  • The schema is already defined, implemented, and filled with data.
  • The web portion of the app is written in Django, which communicates directly with the DB.
  • The database is MySQL.

So my question is, what is the best framework for creating REST API in Clojure in late 2014? I've so far come across Caribou and Liberator, but don't know how to evaluate which is better (being a Clojure noob).

like image 812
Jack Slingerland Avatar asked Oct 31 '14 12:10

Jack Slingerland


2 Answers

You have several high-quality options:

  • Liberator
  • Compojure (More like a routing library than a framework)

You can't wrong with any of them. But, from your requirements, Liberator seems like a very good choice. Give each of them a try and stick with the one you like the most.

like image 190
Tamer Tas Avatar answered Nov 24 '22 01:11

Tamer Tas


I have also written a Webmachine port called Bishop. In terms of behavior, it is pretty close to the Erlang and Ruby projects.

like image 35
Miles Avatar answered Nov 24 '22 01:11

Miles