Fork me on GitHub
#aleph
<
2018-04-30
>
beders06:04:27

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.

mike70657416:04:21

what are you looking for a template to provide?

mike70657416:04:04

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

mike70657416:04:28

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

beders16:04:13

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 🙂

mike70657416:04:47

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

mike70657416:04:19

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

mike70657416:04:38

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

mike70657417:04:00

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

mike70657417:04:19

and i'm no expert