This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-25
Channels
- # aws (1)
- # bangalore-clj (1)
- # beginners (15)
- # boot (4)
- # clara (7)
- # cljs-dev (7)
- # cljs-experience (3)
- # cljsrn (1)
- # clojure (143)
- # clojure-austin (2)
- # clojure-germany (1)
- # clojure-italy (11)
- # clojure-serbia (11)
- # clojure-spec (96)
- # clojure-uk (20)
- # clojurescript (70)
- # community-development (58)
- # cursive (14)
- # data-science (1)
- # datomic (45)
- # events (2)
- # fulcro (19)
- # jobs (5)
- # jobs-rus (2)
- # off-topic (40)
- # om (24)
- # onyx (3)
- # parinfer (52)
- # pedestal (6)
- # protorepl (38)
- # re-frame (15)
- # reagent (11)
- # ring-swagger (5)
- # specter (37)
- # sql (3)
- # unrepl (3)
- # vim (1)
i'm trying to run the day-of-datomic tutorials. I'm following the README to lein run -m datomic.samples.tutorials
which is blowing up with a connection refused error. Has anyone run across this before?
yeah it's stu halloway's day of datomic. and just cranking it up is not working for me
there seem to be some in-memory examples which work fine, but some examples seem to be reaching out to a running instance which hasn't been started as far as i can tell
@dpsutton yeah, looks like partition_locality is hitting a non-mem conn https://github.com/Datomic/day-of-datomic/blob/59186b4b39c124e2d9d0e79243f3e373b0a0b9d9/tutorial/partition_locality.clj#L27
if it’s only a couple of tutorial steps I guess you can just skip them for now. Then later you have two options:
either set up a local datomic free transactor. As far as I can see there are steps in the README of the mbrainz repo to do it
or adapt the tutorial to use an in-memory database (probably harder if you are not familiar with datomic)
As far as I know you can’t restore a DB from a backup if you are using an in-memory DB
Follow the README from mbrainz-sample, it should guide you through the necessary steps
I’m starting out a new project and the only thing I know for sure is that I’m going to use Datomic, but I haven’t really decided on a front-end yet. What are my best options these days?
In that case I can’t advise you much as I am new to Clojure. It depends how experimental you want to go. From what I gather something like Om next is a safe bet. There are also people attempting to do things with Datascript
I watched this talk recently: https://www.youtube.com/watch?v=aI0zVzzoK_E
http://precursorapp.com also works by syncing Datascript and Datomic
and is open-source (https://github.com/PrecursorApp/precursor)
It seems non-trivial if your project has non-trivial requirements though (lots of data, authorization concerns, etc)
e.g. in the talk linked above the speaker worked on a project where every user had full access and the data-set was fairly small, so he could afford to replicate it “dumbly” to every user’s browser over websocket
You might also want to watch this talk: https://www.youtube.com/watch?v=qijWBPYkRAQ
As a last bit of info: I am working on a project right now with Datomic on the backend. I have 0 experience with Clojurescript and I am new to Datomic so I didn’t want to go full experimental with Datascript/Om Next. I ended up writing some code to auto-generate a GraphQL schema from my Datomic schema + an extra map of information to handle the basic CRUD stuff.
I am using Javascript (ES6) + Relay on the frontend, hitting a GraphQL API mostly auto-generated
I haven’t decided if I’m going with safe just yet. If so, that sounds like a really good option, to generate GraphQL I mean
@hkjels the first talk I linked mentions re-frame. They are using https://github.com/mpdairy/posh, which is a library on top of re-frame and Datascript (from what I gather)