This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-04
Channels
- # architecture (13)
- # bangalore-clj (1)
- # beginners (174)
- # boot (25)
- # cider (65)
- # cljs-dev (10)
- # cljsjs (4)
- # cljsrn (3)
- # clojure (169)
- # clojure-berlin (27)
- # clojure-brasil (32)
- # clojure-greece (3)
- # clojure-russia (31)
- # clojure-sg (4)
- # clojure-spec (6)
- # clojure-uk (74)
- # clojurescript (186)
- # code-reviews (5)
- # css (12)
- # cursive (17)
- # datascript (1)
- # datomic (45)
- # dirac (33)
- # funcool (42)
- # hoplon (25)
- # jobs (6)
- # jobs-discuss (114)
- # lambdaisland (6)
- # leiningen (1)
- # luminus (24)
- # off-topic (86)
- # om (13)
- # om-next (14)
- # onyx (75)
- # perun (2)
- # protorepl (19)
- # re-frame (2)
- # reagent (17)
- # ring-swagger (2)
- # rum (1)
- # slack-help (2)
- # specter (31)
- # test-check (5)
- # timbre (1)
- # untangled (34)
- # vim (8)
@alandipert: would you be so kind as to make a build for hoplon/brew? Or is there a way I can do that?
@jumblerg: how do you push to clojars for hoplon/ui?
@flyboarder I think we just need to add you to Hoplon clojars org, if you aren't already
I can do that later tonight
cool thanks!
Is it possible to use Hoplon/Javelin as a front-end for an API developed on Phoenix/Elixir?
@micha great! Newbie here. (1) How would I link the "cells" to the Phoenix/Elixir API for state updates? (2) can you point to tuts I should look at to do this?
@wengi: take a look at the hoplon/brew firebase stuff, it is similar in concept
@flyboarder: thanks. I just checked https://github.com/hoplon/brew/blob/master/src/hoplon/firebase.cljs.hl. It looks like I need to create several helper functions to convert the elixir data into a clj data structure. (1) Is this the primary work necessary? (2) Is there anything else I need to consider to make this work?
@wengi My usual process for external libs is to write something that interacts with the API and returns Clojure data then write a lib that interacts with javelin
@wengi interaction w/ a server works the same w/out a clj backend that it would in a typical ajax situation
you make ajax requests to the server and your callback is called w/ a json payload. to use with cells, reset!
or swap!
that payload into a cell
since json data is a subset of what cljs supports, you can stick with json and go far
the advantage of using cells in this situation is that your client-side logic is associated with cells, and dissociated from the timing of the ajax response
a level of indirection is provided
altho, it's not a bad idea to look at how https://github.com/hoplon/castra works. it might be a good way to organize and implement your ajax endpoints in elixir
@flyboarder @alandipert : thanks for the tips!
:thumbsup:
has anybody tried using hoplon with http://nightcoders.net yet ?
just did - it totally works
oh wait
yup - definitely works