No description
  • TypeScript 84.7%
  • HTML 12%
  • JavaScript 2.4%
  • Shell 0.4%
  • CSS 0.3%
  • Other 0.2%
Find a file
TimedIn 32c5ae6440
Some checks failed
Deploy to Linux Server / test (push) Successful in 1m23s
Deploy to Linux Server / coverage (push) Has been cancelled
Deploy to Linux Server / deploy (push) Has been cancelled
Small deployment fixes
2025-01-10 11:42:49 +01:00
.forgejo/workflows Small deployment fixes 2025-01-10 11:42:49 +01:00
.vscode Project start 2024-09-16 16:11:05 +02:00
cypress Adding Login with MSAL (#6) 2025-01-10 09:43:21 +00:00
hooks Add test to commit-hook, fix date selector e2e 2024-11-16 17:03:52 +01:00
public Adding Login with MSAL (#6) 2025-01-10 09:43:21 +00:00
src Small deployment fixes 2025-01-10 11:42:49 +01:00
test Adding Login with MSAL (#6) 2025-01-10 09:43:21 +00:00
.editorconfig Project start 2024-09-16 16:11:05 +02:00
.gitignore Fixed package-lock 2024-11-09 14:05:19 +01:00
angular.json Adding Login with MSAL (#6) 2025-01-10 09:43:21 +00:00
cypress.config.ts Adding cypress e2e (#4) 2024-11-10 15:00:46 +00:00
eslint.config.mjs Update packages 2024-12-06 16:22:52 +01:00
jest.config.ts Optimizing import paths 2025-01-08 15:56:43 +01:00
LICENSE Initial commit 2024-08-08 14:13:59 +00:00
package-lock.json Several updates for angular 2024-12-06 16:38:21 +01:00
package.json Adding Login with MSAL (#6) 2025-01-10 09:43:21 +00:00
README.md Add AI Generated component tests 2024-11-11 15:11:25 +01:00
server.ts Several updates for angular 2024-12-06 16:38:21 +01:00
setup-jest.ts Several updates for angular 2024-12-06 16:38:21 +01:00
tsconfig.app.json Project start 2024-09-16 16:11:05 +02:00
tsconfig.json Optimizing import paths 2025-01-08 15:56:43 +01:00
tsconfig.spec.json Add script testing and coverage 2024-11-09 13:46:02 +01:00

TimeTrack Frontend Angular

Coverage Shield

Table of Contents

Prerequisites

Before you begin, ensure you have the following installed:

Installation

  1. Clone the repository:

    git clone https://codeberg.org/timedin/timetrack-frontend.git
    cd timetrack-frontend
    
  2. Install the dependencies:

    npm install
    

Running the App

To run the app in development (watch) mode, use the command:

npm start

Building the Application

You can build the application for different environments using the following commands:

  • Production Build:

    npm run build
    
  • QA Build:

    npm run build:qa
    
  • Development Build:

    npm run build:dev
    

To build the application and watch for changes, use:

npm run watch

Configuration Options

The application supports multiple environments, each with its own configuration. The configurations are defined in the angular.json file under the configurations section of the build and serve targets.

Environment Files

  • Development: src/environments/environment.dev.ts
  • QA: src/environments/environment.qa.ts
  • Production: src/environments/environment.prod.ts

Configuration Details

  • Production:

    • Optimizations are enabled.
    • Source maps are disabled.
    • File replacements for production environment.
  • QA:

    • Source maps are enabled.
    • File replacements for QA environment.
  • Development:

    • Optimizations are disabled.
    • Source maps are enabled.
    • File replacements for development environment.

Testing the Application

To run the tests, use the following command:

npm test

To run tests in watch mode, use:

npm run test:watch

To generate a coverage report, use:

npm run test:cov

For end-to-end testing, use:

npm run test:e2e

Linting the Application

To lint (and auto-fix) the application, use the following command:

npm run lint