Skip to content

Latest commit

 

History

History
107 lines (66 loc) · 2.54 KB

File metadata and controls

107 lines (66 loc) · 2.54 KB

PCTS

Packages

You can find the PCTS Docker images on the Packages page of our GitHub repository. There are separate images for the frontend and backend components.

Note: When running the backend image, make sure to specify a Spring Profile to configure the application correctly.

Development

Prerequisites: pnpm

This project uses pnpm as the frontend package manager. npm and yarn are not supported — the preinstall script will block them.

Install pnpm via corepack (bundled with Node.js ≥ 16):

corepack enable
corepack prepare pnpm@10.32.1 --activate

Or via standalone install:

npm install -g pnpm@10.32.1

Then install frontend dependencies:

cd frontend && pnpm install

Git Hooks

There are some hooks, which are strongly encouraged to use. Simply execute the following command:

  git config --local core.hooksPath .githooks/

Formatting

Code Formatting

Refer to the Frontend and Backend Formatting Guides:

markdownlint and yamllint

We use markdownlint for formating markdown files and yamllint for formating yaml and yml files.

We've disabled the markdown MD013 line-length rule. The default limit of 80 characters is too restrictive, and we're unable to change it to a more flexible value.

Installation

Check the official GitHub documentation for Installation:

Usage

If you run the following commands the complete project expect for node_modules and ISSUE_TEMPLATE is checked for markdown or yaml files. If no output is seen, that means that the linters didn't find any issues.

The commands are also run automatic in the precommit hook.

yamllint
  yamllint .
markdownlint
  find . -name "*.md" -not -path "./frontend/node_modules/*" -not -path "./.github/ISSUE_TEMPLATE/*" | xargs mdl

Docker

To start the application with Docker, navigate to the /docker directory.

There are different profiles available.

Full-stack:

  docker compose up

Backend and DB:

  docker compose --profile backend up

Only DB:

  docker compose --profile db up