This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-16
Channels
- # admin-announcements (94)
- # aws (6)
- # beginners (8)
- # boot (303)
- # cider (5)
- # cljsrn (25)
- # clojure (82)
- # clojure-art (28)
- # clojure-chicago (2)
- # clojure-dev (2)
- # clojure-france (1)
- # clojure-japan (1)
- # clojure-my (1)
- # clojure-russia (78)
- # clojurescript (21)
- # clojurex (3)
- # dirac (1)
- # events (3)
- # funcool (5)
- # hoplon (12)
- # jobs (1)
- # ldnclj (2)
- # off-topic (49)
- # om (207)
- # proton (3)
- # re-frame (24)
- # reagent (45)
- # spacemacs (1)
- # yada (48)
Arg I am driving myself nuts someone help me make a decision
I want to start a re-frame project with a clojure back end
I like the idea of using boot because I don’t need to start two separate processes (one for cljs and one for clj)
But it seems like that’s not a good idea for someone inexperienced with the ecosystem because boot doesn’t have a lot of out-of-the-box solutions for things like running front- and back-end reloading servers at the same time
And there are many options for lein templates, but there doesn’t seem to be a good way to combine templates
@adamtrilling: take a look at saapas for an extensive example of frontend + backend project https://github.com/Deraen/saapas
@adamtrilling: I'd generally try to have two separate projects, one with HTTP API and the other one containing the frontend
I believe @seancorfield is adding support for lein templates to boot
Hm that sappas build.boot
is a great example
> boot doesn’t have a lot of out-of-the-box solutions for things like running front- and back-end reloading servers at the same time
Hmm, what do you mean by that? I run boot-http
to serve static files and have the backend as a reloadable component system using system.boot
and it works pretty well.
@jaen dumb question: what’s system.boot
?
Also interesting...
Thanks everyone!
As @meow says, yes, I have a prototype Boot task that runs Leiningen templates! It will support "Boot templates" too and a bunch more stuff.
For now boot -d seancorfield/boot-new:0.1.0-SNAPSHOT -t templatename -n projectname
should work if you want to test it on you favorite lein-template
Open issues at https://github.com/seancorfield/boot-new
How will boot templates differ from Lein's?
Really just naming conventions. So foo/boot-template and boot.new.foo/foo etc. mostly because it seems weird to have a Leiningen template that generates a Boot project.
But boot-new will support both.
The built-in templates (app, default, task, template) will generate Boot-based projects.
Boot templates will also support generating new pieces of an existing project at some point (like Rails generation of controllers etc).
Suggestions and feedback welcome on GitHub.