A progressive Node.js framework for building efficient and scalable server-side applications.
Authentication && Authorization NestJS
Purpose of this application is to: Cover many key concepts of both Authentication & Authorization, including but not limited to:
- Creating a CUSTOM Auth & Authz workflow for our application (entirely from scratch)
-
Implementing Authentication (via username/password)
-
Hash passwords
-
Implementing sign-in & sign-out
- via username/password
- via Google Auth
-
Protect our Routes in our application (with Authentication)
-
Create PUBLIC routes
-
Refresh tokens & how to invalidate Tokens
-
Different types of Authorization
- Role-based access control
- claims-based authorization
- Policy-based authorization
-
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov