plexus / chestnut

Application template for Clojure + ClojureScript web apps
Eclipse Public License 1.0
1.32k stars 99 forks source link

add an info component to print where to connect to the application #207

Closed featheredtoast closed 7 years ago

featheredtoast commented 7 years ago

Have a component that prints out where the server starts, so it gets printed when the system starts, rather than when main is called. This adds an info line to how to connect to your application, even when main isn't called (eg, starting from the repl, in dev mode).

Not against a redirect, but I feel like there should be some sort of print line in any environment.

(Partially) Addresses the first point brought up on the mailing list.

This might be overkill - we could alternatively just print in an overridden (go) function, or something of that nature, but this ensures that we print the message every time the system is started.

plexus commented 7 years ago

I've put it in for now, we can always iterate on this. It does mean the template is getting more bulky, but it reinforces the pattern of having extra components which is good.