portal

https://github.com/djblue/portal
2020-09-09T20:17:42.005200Z

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

2020-09-09T20:19:34.006200Z

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

djblue 2020-09-09T22:46:12.008Z

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?

djblue 2020-09-09T22:46:27.008400Z

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

djblue 2020-09-09T22:48:43.009600Z

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

2020-09-09T23:16:49.017200Z

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.

2020-09-09T23:26:29.020900Z

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.

djblue 2020-09-09T23:55:19.022500Z

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

djblue 2020-09-09T23:57:32.024300Z

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.