Becoming a super hero is a fairly straight forward process:
$ git clone https://github.com/alekcz/datahike-starter.git
$ cd datahike-starter
$ lein repl
Remember you can only activate this super power once leiningen is installed
And we're good to go.
nREPL server started on port 63162 on host 127.0.0.1 - nrepl://127.0.0.1:63162
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.10.0
OpenJDK 64-Bit Server VM GraalVM CE 20.0.0 1.8.0_242-b06
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
datahike-starter.core=>
Now that we've got our config we can really get started.
=> (d/database-exists? config) ; check if it exists
; ...
; false
=> (d/connect config) ; this fails
; ...
; Backend does not exist.
=> (d/create-database config) ; so let's create it
; ...
; nil
=> (d/database-exists? config) ; and now it exists
; ...
; true
=> (d/connect config) ; And we're in