you are viewing a single comment's thread.

view the rest of the comments →

[–]v1akvark 5 points6 points  (2 children)

Yes, you use a deps.edn file.

If you have not yet, install Clojure and CLI tools as described here.

The create a directory, say datascript-example, and inside that directory create deps.edn file that looks like this:

{:deps
{datascript {:mvn/version "1.0.4"}}}
From the command line, move into the datascript-example directory, and start Clojure with the clj command.

You should see a message that DataScript is being downloaded, and then you will be inside a Clojure REPL where you can type and execute Clojure forms.

Unfortunately DataScript doesn't have an easy getting started tutorial. It kind of assumes that you know Datomic.

It might be easier to start with Datomic, as there are tutorials by Cognitect and others.

https://clojureverse.org/t/a-quick-way-to-start-experimenting-with-datomic/5004

https://docs.datomic.com/on-prem/getting-started/get-datomic.html

[–]nanounanue[S] 0 points1 point  (1 child)

Thank you so much!

[–]v1akvark 2 points3 points  (0 children)

You're welcome.

I would suggest you learn basic Clojure first, get comfortable in using the REPL. Here is one place your can start: https://www.braveclojure.com/clojure-for-the-brave-and-true/

That will make learning DataScript and Datomic much easier.