Using Datomic in a simple use case

In a previous post, we started building an account service in Clojure using compojure-api. In this post, we will add persistence using Datomic. The sources are available on GitHub. For an introduction to Datomic as well as the value-proposition behind it, you should take a look at the training resources on the Datomic website. If the videos are too much of an investment at this stage, you might want to take a look at Daniel Higginbotham’s article Datomic for Five Year Olds. Just as a quick reminder, the service should support creating accounts and transferring money from one account to another. Here are the Swagger docs for the API: