Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Donate us Support us Follow us on Twitter

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Features

  1. Implement Session base authentication using Spring Security.

  2. Users should be able to change their password.

  3. Add basic validation for user details during registration (e.g., email format, password complexity).

  4. Implement a global exception handler for common exceptions, especially authentication and authorization-related exceptions.

Optional (for Bonus Points):

  1. Allow users to maintain a personal collection of books. A user can add a book to their collection, remove books from their collection, or view their collection.

  2. Implement a role-based access control system, where certain operations (e.g., deleting any book) might be restricted to users with an 'admin' role.

Support

swagger run on http://localhost:4444/docs