unboundedsystems / adapt

ReactJS for your infrastructure. Create and deploy full-stack apps to any infrastructure using the power of React.
https://adaptjs.org
Apache License 2.0
404 stars 12 forks source link

Feature request: render HTML for visualization #12

Open cometkim opened 4 years ago

cometkim commented 4 years ago

This is really cool approach for infrastructure as code.

I often use visualization tools like CloudCraft or diagrams for initial prototyping, but once it deployed using another tool like terraform, it is difficult to keep them in sync.

Since this project shares the core concept of React, I think this can "render" it by just adding a render target and the same representation can be visualized via HTML, SVG, etc.

mterrel commented 4 years ago

Thanks @cometkim! We're very excited about the possibilities for Adapt.

And thanks for the great suggestion. Visualization is definitely on our overall roadmap. We'd like to eventually provide an interactive version of visualization that allows you to explore the entire DOM and understand the DOM build process, including any transformations applied from style sheets.

Until that's available, you can peek inside Adapt a bit and see the DOM for a deployment in XML format. It's not awesome for human consumption, but it can give you some idea what's going on. You can find the DOM file in the Adapt local deployments directory. On Linux and similar platforms, the default location for that directory is $HOME/.local/share/adapt/local_deploy/deployments.

To see a list of all the Adapt DOMs that have ever been generated for all of your active deployments:

ls $HOME/.local/share/adapt/local_deploy/deployments/*/*/adapt_dom.xml

Those files will be arranged in directories based on deployment name and timestamp.

bishwenduk029 commented 4 years ago

@mterrel , If possible with some guidance from you I can try to come with this visualization? This is very exciting concept declare your infrastructure as React....