Socket
Socket
Sign inDemoInstall

@aws-c2a/web-app

Package Overview
Dependencies
46
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aws-c2a/web-app

`@aws-c2a/web-app` is a package that generates a web app to help you visualize and interact with the change report generated by `@aws-c2a/engine`;


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

AWS CDK Change Analyzer (C2A) - Web App

@aws-c2a/web-app is a package that generates a web app to help you visualize and interact with the change report generated by @aws-c2a/engine;

Usage

We recommend using the aws-c2a CLI to run the web app. However, if you wish to interact directly with the package itself check out the integration section below.

Integration

To use the web app package in a production environment:

  1. Install the @aws-c2a/web-app package

    yarn add @aws-c2a/web-app
    
  2. Import package and obtain the path to the template file

    const templatePath = require(resolve('@aws-c2a/web-app/fixtures/template.index.html'));
    const template = await fs.promises.readFile(templatePath, 'utf-8');
    
  3. Replace the placeholder values in the template file with stringified change report

    const webapp = template.replace('"!!!CDK_CHANGE_ANALYSIS_REPORT"', report);
    

To use the web app package in a developer environment:

  1. First install and build all packages.

    git clone https://github.com/cdklabs/awscdk-change-analyzer.git
    cd awscdk-change-analyzer
    yarn install
    yarn build
    cd packages/@aws-c2a/web-app
    
  2. Then create the necessary data file (change report) for testing.

    touch data.json
    
  3. Now you can start developing with @aws-c2a/web-app running locally.

    yarn dev
    

FAQs

Last updated on 06 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc