The recipe:

  1. datomic-pro. Download at
https://my.datomic.com/downloads/pro
  1. datomic console. Download at
https://my.datomic.com/downloads/console
  1. MusicBrainz sample database. Download at
http://s3.amazonaws.com/mbrainz/datomic-mbrainz-backup-20130611.tar

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

To pull datomic to your Clojure project, make sure you go to https://my.datomic.com/account. After that copy the line:

{#"my\.datomic\.com" {:username "youremail@company.com"
                      :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 {"my.datomic.com" {:url "https://my.datomic.com/repo"
                                 :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/dev-transactor-template.properties
  1. 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
  1. Run the datomic console:
bin/console -p 8080 dev datomic:dev://localhost:4334/
  1. Open the browser:
http://localhost:8080/browse