Skip to content

anilahir/nestjs-authentication-and-authorization

Folders and files

NameName
Last commit message
Last commit date
Jan 27, 2025
Feb 25, 2023
Feb 2, 2024
Feb 25, 2023
Jan 27, 2023
Feb 16, 2023
Jan 26, 2023
Jan 24, 2023
Jan 26, 2023
Jan 26, 2023
Jan 14, 2023
Feb 2, 2024
Jan 27, 2023
Jan 14, 2023
Feb 2, 2024
Feb 25, 2023
Jan 27, 2023
Feb 2, 2024
May 1, 2025
May 1, 2025
Jan 14, 2023
Jan 14, 2023

Repository files navigation

NestJS Authentication

Workflow Test Prettier GPL v3 License HitCount

Description

NestJS Authentication without Passport using Bcrypt, JWT and Redis

Features

  1. Register
  2. Login
  3. Show profile
  4. Logout

Technologies stack:

  • JWT
  • Bcrypt
  • TypeORM + MySQL
  • Redis
  • Docker

Setup

1. Install the required dependencies

$ npm install

2. Rename the .env.example filename to .env and set your local variables

$ mv .env.example .env

3. Start the application

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Docker for development

# start the application
$ npm run docker:up

# stop the application
$ npm run docker:down

Swagger documentation

References

Author

👤 Anil Ahir

Show your support

Give a ⭐️ if this project helped you!

Related projects

Explore more NestJS example projects:

GraphQL example

License

Release under the terms of MIT