aleph

beders 2018-04-30T06:04:27.000033Z

hello there! Is there an aleph starter template out there somewhere you guys are using. I'm starting from scratch and decided to give aleph a try.

mike706574 2018-04-30T16:36:21.000033Z

what are you looking for a template to provide?

mike706574 2018-04-30T16:37:25.000401Z

http://aleph.io/aleph/literate.html

mike706574 2018-04-30T16:39:04.000663Z

i found those examples to be enough when i first started using it

mike706574 2018-04-30T16:41:28.000018Z

but it probably depends what other libraries you want to integrate with and which parts of aleph you're looking to use

beders 2018-04-30T16:44:13.000494Z

ideally I'd like one with aleph providing the server side and reagent providing the client side all neatly packaged in one repository. I guess I'm too lazy to read the leiningen docs 🙂

mike706574 2018-04-30T16:50:47.000557Z

aleph is very much like ring, so i don't think it would too hard to take a ring-based template, rip out the ring part, and put in aleph

mike706574 2018-04-30T16:54:19.000057Z

if you used that reagent one, i think you could just take the resulting src/clj/reagent/server.clj and change the ring-adapter-jetty/run-jetty call to aleph.http/start-server

mike706574 2018-04-30T16:57:38.000127Z

then just change the handler functions for the compojure routes to return manifold deferred's or aleph's websocket-connection, like in the examples

mike706574 2018-04-30T17:00:00.000481Z

but i'm not aware of an aleph/reagent lein template

mike706574 2018-04-30T17:00:19.000128Z

and i'm no expert