Fork me on GitHub
#portal
<
2020-09-09
>
seeday20:09:42

Hey djblue, any suggestions on how to use portal as a "service" instead of something on demand?

seeday20:09:34

Attempting to use it as a web-based db viewer for a bunch of datafyable stuff

djblue22:09:12

Hi @chrisday0001, how much control are you looking for? Do you have an http server already or do you want to use the one in portal?

djblue22:09:27

What platform are you using, I'm assuming jvm.

djblue22:09:43

Also, how would you expect people to use the web-based db viewer?

seeday23:09:49

Probably enough control that portal would become embedded in a larger webpage with some extra elements, depending on what makes sense to add to portal itself or not. Happy with using whatever http server. Rest of our code is jvm yes. I think minus the clj-http stuff it would be entirely portable to cljs though. Newish to cljs, been using clojure for years. Unsure. Enough that I think the idea would be to detach it from the repl and just run it in a browser. We’d serve some “seed” data and a datafiable/navigable implementation with it, but it’s client side from there on out.

seeday23:09:29

I mostly wanted to hear your thoughts on whether this fits as part of portal before I started hacking it apart. I know currently it’s sort of a debug tool(?) but for me it’s a way to bring rebl to all our javascript devs that almost certainly don’t even have a jre installed.

djblue23:09:19

This is a lot of good information. I think this definitely fits with how portal currently works. I do have some additional questions though.

djblue23:09:32

Were you thinking about embedding the ui via react directly or via an iframe? I think both options could work. It's mostly around how much control you would like over the portal ui in the extended ui and what kind of api expectations you have.