Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: render HTML for visualization #12

Open
cometkim opened this issue May 13, 2020 · 2 comments
Open

Feature request: render HTML for visualization #12

cometkim opened this issue May 13, 2020 · 2 comments

Comments

@cometkim
Copy link

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
Copy link
Member

mterrel commented May 14, 2020

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
Copy link

@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....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants