Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 958 Bytes

README.md

File metadata and controls

42 lines (25 loc) · 958 Bytes

OKR-Tool Frontend

This is the Angular Frontend for the OKR-Tool.

DEVELOPING

Environment:

  • We require Node.js ^18

Install:

  • Install npm dependencies: npm install
  • Make a clean install: npm ci
  • Install the git hooks for the frontend: npm run prestart

Formatting:

  • Check code formatting: npm run check
  • Format the code: npm run format

Test and Run:

  • Execute the tests: npm run test
  • Start the frontend: npm run start

Build:

  • Build for production: npm run build

Formatting

We use the prettier code formatter for the frontend code: https://www.npmjs.com/package/prettier

Test Coverage

For generating the coverage of our frontend specs (jest), you can use following command: npx jest --coverage (jest --coverage if you have jest installed locally)

This generates the coverage, you can see it in frontend/coverage/lcov-report/index.html. Open the html file in browser and you get a beautiful overview