Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 2.71 KB

README.md

File metadata and controls

64 lines (48 loc) · 2.71 KB


ProjectCanvas
Project Canvas

Installation

Make sure you have a node interpreter installed via a node manager (such as nvm or fnm). For more information on node managers see the NPM docs.

Ensure yarn is installed via corepack. If it is not, run corepack enable somewhere in your CLI.

To install all dependencies, run

yarn install

To start the local dev server, simply run

yarn run start

Publish a release

To publish a release for this project, do the following:

  1. Increment the version of this project in the package.json
  2. Commit and push your changes
  3. Ensure your secrets are correctly configured in GitHub (see the release workflow)
  4. Run the release workflow manually via the "Actions" tab and select the main branch to release from

If you are not hosting this project on GitHub or want to publish a release locally, you can follow these steps after step 1.: 2. Ensure your secrets are correctly configured in the .env file 3. Run yarn run release

Run static analysis

You can run static analysis on this project using Sonarqube and CodeCharta.

Prerequisites:

  1. Set up a sonarqube instance (e.g. install a local instance via Docker or use the docker compose file provided in the CodeCharta source)
  2. Configure a fresh project (i.e. obtain a project key) and set up an analysis user (i.e. obtain an authentication token)
  3. Get the sonarqube scanner CLI tool (e.g. install a binary into your PATH or run a docker image. For more information see the CLI tool docs)

To run the scanner in the project, fill in the placeholders, execute in the project root:

sonar-scanner \     
  -Dsonar.projectKey=<project-key> \
  -Dsonar.sources=src,types,electron,e2e \
  -Dsonar.host.url=<sonarqube-url> \
  -Dsonar.token=<auth-token>

After a little while, the finished analysis will appear in your Sonarqube instance

Import into CodeCharta

You first have to convert the current analysis data from Sonarqube into the CodeCharta JSON format:

ccsh sonarimport -u <auth-token> -o canvas.cc.json -nc <sonarqube-url> <project-key>