This is a sample project whose only purpose is to show how one combines Liberator and Korma projects to build a RESTful webservice in Clojure around a relational database.
Clojure
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
db
src/libekorma
.gitignore
LICENSE
README.md
project.clj

README.md

#Libekorma#

This is a sample project whose only purpose is to show how one combines Liberator and Korma projects to build a RESTful webservice in Clojure around a relational database.

There is a post covering this topic at http://blog.alex-turok.com.

###We start like###

  1. Very simple getting started instructions go here

###We have###

  1. Simple Korma entities representing DB objects in the app
  2. Demo data insertion through Korma, allowing to have some data as well as see very basic Korma stuff
  3. POST/GET/PUT/DELETE API on a couple resources that performs inserts, deletes, updates and selects (including those with joins)
  4. Very basic Ring+Compojure harness around the resource
  5. Simple, possibly unidiomatic, use of exists?, conflict? and malformed? handlers

###We use###

  1. Postgres as a database engine - this does not affect the code much, but the schema definition and connection definition do depend on the underlying DBMS.
  2. I completely ignore each and every advanced aspect of web applications, including authentication and everything else.