Open cometkim opened 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.
@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....
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.