Fork me on GitHub
#luminus
<
2018-04-13
>
Casey11:04:13

@yogthos I'm in a situation where I'm starting a project and for the first MVP we will only need a small HTTP API that where ring or compjure would suffice. But coming soon we might want to add frontend stuff, and then later a database...i don't want to lein new luminus +all_the_things at this early stage. What do you recommend to do here?

yogthos12:04:30

you could add things in as you go, it mostly involves updating project.clj later on, but if you fairly sure you'll have cljs on the front-end and a db I'd use +re-frame and +postgres (or another db) flags from the start.

Casey15:04:07

@yogthos thanks for the advice!

Casey15:04:21

is there an easy way to run tests from the repl?

yogthos15:04:07

Yeah, you should just be able to call run-tests from clojure.test, might make sense to reference it by default in the user namespace

yogthos15:04:25

I personally prefer running lein-test-refresh in the terminal

yogthos15:04:49

Because it runs the tests automatically for you as the namespaces change

yogthos16:04:19

The template already comes with the plugin setup

Casey16:04:25

oh nice, that works great

Casey16:04:52

maybe it could be mentioned on the testing page?

Casey16:04:19

especially if it comes out of the box 🙂

yogthos16:04:28

good idea 🙂