HR Management System
An HR management backend in NestJS and PostgreSQL with JWT access and refresh tokens, role-based permissions, and Swagger docs, paired with an Angular client.
May 2026 · Open source · Nest.js, Typescript, PostgreSQL, Sequelize, JWT / RBAC, Angular
Overview
A NestJS backend for an HR management product, built on PostgreSQL with Sequelize and sequelize-typescript.
Authentication uses short-lived JWT access tokens with refresh tokens. Authorisation is role-based, with users, roles and permissions modelled in the database and enforced by guards.
Input is validated with class-validator and every endpoint is documented in Swagger, so the Angular frontend can integrate against a clear contract.
Features
- JWT access + refresh token flow
- Users, roles and permissions (RBAC) enforced with NestJS guards
- PostgreSQL via Sequelize with typed models
- Swagger documentation for every endpoint
- Separate Angular frontend repository