This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-18
Channels
- # admin-announcements (3)
- # alda (1)
- # boot (85)
- # capetown (4)
- # cider (10)
- # clara (16)
- # cljsrn (3)
- # clojars (35)
- # clojure (83)
- # clojure-austin (8)
- # clojure-brasil (4)
- # clojure-canada (16)
- # clojure-greece (2)
- # clojure-ireland (7)
- # clojure-russia (23)
- # clojure-spec (22)
- # clojure-uk (151)
- # clojurescript (97)
- # core-async (10)
- # cursive (1)
- # datascript (7)
- # datomic (21)
- # defnpodcast (13)
- # devcards (3)
- # emacs (4)
- # events (3)
- # hoplon (18)
- # juxt (4)
- # leiningen (7)
- # mount (4)
- # off-topic (2)
- # om (1)
- # onyx (30)
- # planck (6)
- # proton (81)
- # re-frame (3)
- # reagent (9)
- # rum (10)
- # spacemacs (1)
- # specter (6)
- # testing (7)
- # untangled (66)
- # vim (84)
- # yada (23)
it depends what you mean by large - http://juxt.pro runs off yada pretty much exclusively - @mccraigmccraig has a largish project in production, there are others
but yada is a new library, relatively speaking, so doesn't have anywhere near the footprint of Liberator and Pedestal
as malcolm said, my project uses yada for it's api - i'm happy to answer any questions you have @lmergen
i'm the kind of person who always lurks a lot of other big projects to get some inspiration
is it correct that yada projects are usually small enough that a separate routes/
directory / namespace makes no sense ?
If you have a really big project, I would suggest separating routes out into each module and composing them together into a single route structure. Having one big route structure in a project would become a kind of 'god object' eventually
compojure/bidi/pedestal purposely supports this kind of recursive composition
data is so easy to compose, that's part of its attractoin
furthermore, what is the best approach to testing yada ? just use the same test tools as you would use for testing a ring app ?
response-for
, for example, only returns the body as a string, you have to manually coerce it
@lmergen: YMMV but I use 2 layers of tests - unit tests against my business usecases which don't include yada at all and api integration tests that fire up the server using the dev namespace and use clj-http to perform the actual http queries against it