1.124.1 • Published 11 days ago

codecharta-visualization v1.124.1

Weekly downloads
54
License
BSD-3-Clause
Repository
github
Last release
11 days ago

CodeCharta Visualization

Quality Gate Status For Visualization

CodeCharta by MaibornWolff

Jump to Section

Installation

You can start with Codecharta Visualization on multiple ways:

  • Installation as a npm package (Recommended for users)
  • Run an operating system specific standalone
  • Build it yourself from the github repository (Development)
  • Use docker-compose to run this with other needed tools like a Sonar instance or analyzing tools of codecharta-analysis.
  • Use our Dockerfile to run the visualization in a container
  • Try out the online version

Be aware, that if you are on Apple Silicon, you may run into problems with the standalone and build versions

NPM Package

Make sure you have Node.js (version >=18) installed For reference: Codecharta-Visualization on NPM

# Install the package globally via npm
$ npm i -g codecharta-visualization
# Run it anywhere (you might need administrative rights/sudo)
# You might need to restart your terminal
$ codecharta-visualization

Run a standalone

  • Download the correct standalone version for your OS from the latest release page under 'Assets'
  • Extract & run the application

MacOS

If you get an error on MacOS because of a missing license, try this apple support article You may be required to give the application executable rights

If you are using an M1 or similar (arm64) architectures you might need to do additional steps, because the OS might flag the executable as damaged, if it is downloaded and from an unverified developer:

  • Remove the 'downloaded' attributes from the OS: $ xattr -cr codecharta-visualization.app/

Build it yourself

To clone and run this application, you'll need Git and Node.js (version >=18) installed

# Clone the CodeCharta repo
$ git clone https://github.com/MaibornWolff/codecharta.git
# Navigate to Visualization
$ cd codecharta/visualization
# Installation.
$ npm install
# Run the development server
$ npm run dev
# Upload any .cc.json!

Tasks

After cloning the repository and running the npm installation as described above, you can use the other available commands and tasks inside the visualization project. You can check all tasks and their functionality inside the package.json section scripts.

Build

Build the project in dist/webpack. The produced files are required if you want to package the application or start the standalone version.

Additional files are copied inside the webpack, which are required to execute the electron standalone via npm (run) start Note that the build command requires unix tools on path, so on Windows add them to it or use the bash shell

# Make sure you are still inside the visualization project
$ cd visualization
# Build the webpack without serving it
$ npm run build
# The webpack is inside the dist/webpack/ folder, which you can serve as a web application

Package

Package the electron application to produce the standalone versions for Windows, Linux and MacOS for distribution and testing. The different versions are inside the dist/applications folder.

Make sure to run the build task beforehand This process might require administrative rights/sudo depending on the OS For UNIX-based systems you probably need to install Wine to package the Windows application The MacOS version usually can't be packaged while using Windows

$ npm run package
# If you only want to produce the standalone version for your current OS/arch combo use package:local
$ npm run package:local

For each application there will be a .zip file inside the dist/packages folder. Zipping is part of the npm run package process. You can check the scripts inside script/app*.js for details.

Dev

# Build the webpack and serve it under localhost:3000
$ npm run dev
# This server listens to file changes

Start

Make sure to run build beforehand

# Start the electron application
$ npm run start

Testing

To run tests check out the following tasks:

Unit

Run unit tests in app/ and generate a coverage report in dist/coverage/.

$ npm run test
# To run the tests in watch mode, use
$ npm run test:auto

E2E

Run end-to-end tests

# Make sure to stop the dev-webserver before continuing
# Create an up-to-date build
$ npm run build
# Start the e2e tests
$ npm run e2e
# To run the tests in watch mode, use
$ npm run e2e:auto

To follow/watch the steps the e2e test is performing, deactivate headless mode in jest-puppeteer.config.js (and maybe set the slowMo parameter)

Run in Docker container

You can use this via docker compose or as a standalone container. This section will deal with how to use the visualization as a standalone container. For information on how to use this with docker compose, please check out Docker Getting Started We assume that you already installed docker, if not, you have to do that before!

To containerize the visualization, please follow the below listed steps.

  • Start the docker container: docker run -d -p 9000:80 codecharta/codecharta-visualization. This detaches the container and exposes port 80 on the container and port 9000 on the host.
  • Open localhost:9000 in your browser and you can already use the visualization, upload cc.json files and play around!

JSON structure

Example Data

JSON Schema

1.124.1

11 days ago

1.124.0

11 days ago

1.123.0

1 month ago

1.122.0

2 months ago

1.121.1

4 months ago

1.121.0

4 months ago

1.119.0

9 months ago

1.119.1

8 months ago

1.120.1

4 months ago

1.120.0

5 months ago

1.118.0

10 months ago

1.117.0

11 months ago

1.116.0

11 months ago

1.115.1

12 months ago

1.115.0

1 year ago

1.114.0

1 year ago

1.113.0

1 year ago

1.111.0

1 year ago

1.110.0

1 year ago

1.109.0

1 year ago

1.109.1

1 year ago

1.112.0

1 year ago

1.112.1

1 year ago

1.107.0

2 years ago

1.106.0

2 years ago

1.106.1

2 years ago

1.105.0

2 years ago

1.108.1

1 year ago

1.103.5

2 years ago

1.103.6

2 years ago

1.103.3

2 years ago

1.103.1

2 years ago

1.103.0

2 years ago

1.99.1

2 years ago

1.102.0

2 years ago

1.101.0

2 years ago

1.101.1

2 years ago

1.99.0

2 years ago

1.100.0

2 years ago

1.104.0

2 years ago

1.104.1

2 years ago

1.98.0

2 years ago

1.97.0

2 years ago

1.96.0

2 years ago

1.95.2

2 years ago

1.94.0

2 years ago

1.93.0

2 years ago

1.92.1

2 years ago

1.95.1

2 years ago

1.95.0

2 years ago

1.92.0

2 years ago

1.91.1

2 years ago

1.90.0

2 years ago

1.86.0

2 years ago

1.87.0

2 years ago

1.87.1

2 years ago

1.84.1

2 years ago

1.89.0

2 years ago

1.88.0

2 years ago

1.91.0

2 years ago

1.85.0

2 years ago

1.82.1

2 years ago

1.83.0

2 years ago

1.83.1

2 years ago

1.84.0

2 years ago

1.82.0

2 years ago

1.80.0

2 years ago

1.81.0

2 years ago

1.79.0

3 years ago

1.78.0

3 years ago

1.77.0

3 years ago

1.76.0

3 years ago

1.75.0

3 years ago

1.74.0

3 years ago

1.72.0

3 years ago

1.73.0

3 years ago

1.71.0

3 years ago

1.71.2

3 years ago

1.70.1

3 years ago

1.70.2

3 years ago

1.70.0

3 years ago

1.69.0

3 years ago

1.68.0

3 years ago

1.67.0

3 years ago

1.66.0

3 years ago

1.65.0

3 years ago

1.64.0

3 years ago

1.63.0

3 years ago

2.0.0

3 years ago

1.62.0

3 years ago

1.61.0

3 years ago

1.60.2

3 years ago

1.60.1

3 years ago

1.59.0

3 years ago

1.58.1

3 years ago

1.58.0

3 years ago

1.57.4

4 years ago

1.57.3

4 years ago

1.57.2

4 years ago

1.57.1

4 years ago

1.56.0

4 years ago

1.55.0

4 years ago

1.54.0

4 years ago

1.53.0

4 years ago

1.52.0

4 years ago

1.51.0

4 years ago

1.50.0

4 years ago

1.49.1

4 years ago

1.49.0

4 years ago

1.48.0

4 years ago

1.47.1

4 years ago

1.47.0

4 years ago

1.46.1

4 years ago

1.45.5

4 years ago

1.44.0

4 years ago

1.43.0

4 years ago

1.42.3

4 years ago

1.42.2

4 years ago

1.42.1

4 years ago

1.41.9

4 years ago

1.41.8

4 years ago

1.41.6

4 years ago

1.41.0

4 years ago

1.40.0

4 years ago

1.39.0

4 years ago

1.38.1

4 years ago

1.38.0

4 years ago

1.37.0

4 years ago

1.36.0

4 years ago

1.35.0

4 years ago

1.34.0

5 years ago

1.33.0

5 years ago

1.32.0

5 years ago

1.31.0

5 years ago

1.30.0

5 years ago

1.29.0

5 years ago

1.28.0

5 years ago

1.26.0

5 years ago

1.25.1

5 years ago

1.25.0

5 years ago

1.24.0

5 years ago

1.23.0

5 years ago

1.22.0

5 years ago

1.21.2

5 years ago

1.21.1

5 years ago

1.21.0

5 years ago

1.20.1

5 years ago

1.20.0

5 years ago

1.19.0

5 years ago

1.18.1

5 years ago

1.18.0

5 years ago

1.17.0

6 years ago

1.16.2

6 years ago

1.16.1

6 years ago

1.16.0

6 years ago

1.15.1

6 years ago

1.15.0

6 years ago

1.14.2

6 years ago

1.14.1

6 years ago

1.13.0

6 years ago

1.12.0

6 years ago

1.11.2

6 years ago

1.11.1

6 years ago

1.10.0

6 years ago

1.9.3

6 years ago

1.9.2

6 years ago

1.9.1

6 years ago

1.9.0

6 years ago

1.6.7

6 years ago

1.6.5

6 years ago

1.6.4

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.2

6 years ago