Up and Running Datomic Starter

The recipe:
1. datomic-pro. Download lewat

2. datomic console. Download at

3. MusicBrainz sample database. Download at

After finish-up registration, the license key goes to your email. First, extract the datomic itself, then config the transactor in ./config/samples/ with your license.

To pull datomic to your Clojure project, make sure you go to After that copy the line:

{#"my\.datomic\.com" {:username ""
                      :password "xxxxxxx-yyyyyy-xxxx-zzzzz-xxxxxxxxtttt"}}

to ~/.lein/credentials.clj, then encrypt it using gpg, make sure not using passphrase. To encrypt it, run

gpg --default-recipient-self -e ~/.lein/credentials.clj > ~/.lein/credentials.clj.gpg

Now, in your Clojure project project.clj add:

:repositories {"" {:url ""
                                 :creds :gpg}}
:dependencies [[com.datomic/datomic-pro $VERSION]]

To run datomic, steps:

1. Go to datomic extracted directory
2. fire up the datomic:

bin/transactor config/samples/

3. To restore MusicBrainz database: extract it then, run. Wait it till restoring done.

bin/datomic restore-db file:datomic-mbrainz-backup-20130611 datomic:dev://localhost:4334/mbrainz

4. Run the datomic console:

bin/console -p 8080 dev datomic:dev://localhost:4334/

5. Open the browser:


By Nadiar Syaripul

Alien, homo sapiens, baik hati dan nggak sombong, yang sengaja atau gak sengaja lagi suka ngitung angka-angka yang nggak penting. Kalau mau kepo, buka aja blog personalnya atau stalking di @codxse. Oh ya, kalo penasaran banget, email aja Cheers!.

2 replies on “Up and Running Datomic Starter”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.