# Leaves Frontend (Angular 17)

Employee and HR portals for the leaves & attendance API.

## Prerequisites

- Node.js 18+
- Backend running at `http://localhost:3000` (see `../backend/README.md`)

## Development

```bash
npm install
npm start
```

Open http://localhost:4200. API calls proxy to the backend via `proxy.conf.json`.

## Build

```bash
npm run build
```

Production build uses `/api/v1` as the API base URL.

## Test fixtures

- Employee: `GTPL-BOB`, `GTPL-MGR`, `GTPL-CAR` (OTP via email)
- HR: `hr.admin` / `hr-admin-pass`

## E2E smoke tests

```bash
npx playwright install chromium
npx playwright test
```

## Architecture

NgRx store with facades per domain. See [angular.md](./angular.md).
