This is the Angular Frontend for the OKR-Tool.
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
We use the prettier code formatter for the frontend code: https://www.npmjs.com/package/prettier
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