REST APIs and Relational Databases in Clojure

I've found that most Clojure web application articles out there cover the Ring and Compojure APIs pretty well, but stop short of the data access layer, leaving that up to you. This article will attempt to remedy that, with a focus on relational databases.

In this post we'll create a simple REST API for a todo list web application. We'll use Compojure to create a REST API, Lobos to create and manage our database tables, and Korma to query a PostgreSQL database.

Generating a Compojure Application

The first thing we'll do is set up a Compojure web application. Use Leiningen to create and continue.

tagged as , , , , , , and