devcards

Devcards aims to provide a visual REPL experience for ClojureScript https://github.com/bhauman/devcards
seantempesta 2015-10-08T12:41:30.000064Z

Hey @bhauman. First off, thanks for creating figwheel and devcards (figwheel changed my life!). I’m trying to wrap my head around a few things w/r/t devcards though. The goal is to not have them running at the same time as your app?

bhauman 2015-10-08T12:44:24.000065Z

Figwheel can run two builds at the same time. So you can work on devcards and you app at the same time

bhauman 2015-10-08T12:44:45.000066Z

@seantempesta: ^

seantempesta 2015-10-08T12:45:00.000067Z

But the state wouldn’t be shared?

bhauman 2015-10-08T12:47:06.000068Z

Nope, but you can put your whole App in a card if you want to share state. But sharing state isn't the intent.

seantempesta 2015-10-08T12:48:50.000069Z

I see. Is there a way to choose where devcards is rendered in the DOM?

bhauman 2015-10-08T13:10:58.000070Z

@seantempesta: this isn't recommend, why do you ask? Is uses routing so even if it was co rendered with your app it probably wouldn't work out well. I take it you haven't tried it yet?

seantempesta 2015-10-08T13:12:05.000071Z

Well, I was thinking I could render it in iframe to avoid the routing issues.

seantempesta 2015-10-08T13:13:53.000072Z

The reason I want to do this, I’d love to have more insight into what’s going on in my app while it’s running. I’m using re-frame so being able to inspect the app-db ratom, rollback in time, etc. would be super useful.

bhauman 2015-10-08T13:26:27.000073Z

@seantempesta: yeah that's a really different use case and a small set of functionality that you can get from ankha and snapshoting your state atom.

bhauman 2015-10-08T13:28:31.000074Z

Devcards is not meant to be tooling for your main application, Unless you run your whole app inside devcards

seantempesta 2015-10-08T13:28:51.000075Z

Okay. I’ll take a look at ankha. Thanks for your advice!

2015-10-08T21:54:41.000076Z

@seantempesta: for inspecting your re-frame app-db you can use https://github.com/binaryage/cljs-devtools