Skip to content

Build from source

Build both parts from the repository to run the latest development version or to work on CodeCharta yourself.

  • Git
  • Java >= 22. The build compiles with JDK 25, which Gradle downloads when it is missing.
  • Node 22.22.3 or newer on 22.x, 24.15 or newer on 24.x, or 26 and newer
Terminal window
git clone https://github.com/MaibornWolff/codecharta
cd codecharta

The analysis is a Kotlin project built with Gradle. Run every Gradle command from the analysis folder:

Terminal window
cd analysis
./gradlew installDist

The build puts ccsh into build/install/codecharta-analysis/bin/. It works like the installed ccsh, for example with ccsh analyse:

Terminal window
./build/install/codecharta-analysis/bin/ccsh -h
./build/install/codecharta-analysis/bin/ccsh analyse path/to/your/project

The map lands in the current folder as <project folder name>.cc.json.gz. See CodeCharta Shell for every command.

The visualization is an Angular application. From the repository root:

Terminal window
cd visualization
npm install
npm run dev

npm run dev starts a development server with the Web Studio, where you can load the maps the shell writes.

For a production build, and to start the desktop app from it:

Terminal window
npm run build
npm run start

The contribution guide and the developer start guide explain the workflow, the tests and the checks a pull request has to pass.