https://github.com/anilahir/nestjs-authentication-and-authorization
NestJS Authentication without Passport using Bcrypt, JWT and Redis
https://github.com/anilahir/nestjs-authentication-and-authorization
bcrypt docker jwt nest nestjs nestjs-auth nestjs-authentication nestjs-authentication-and-authorization nestjs-backend nestjs-boilerplate nestjs-docker nestjs-jwt nestjs-jwt-typeorm nestjs-redis nestjs-starter-template nestjs-swagger nestjs-typeorm typeorm typescript
Last synced: about 2 months ago
JSON representation
NestJS Authentication without Passport using Bcrypt, JWT and Redis
- Host: GitHub
- URL: https://github.com/anilahir/nestjs-authentication-and-authorization
- Owner: anilahir
- License: mit
- Created: 2023-01-14T08:00:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T04:20:34.000Z (about 2 months ago)
- Last Synced: 2025-04-12T22:58:42.508Z (about 2 months ago)
- Topics: bcrypt, docker, jwt, nest, nestjs, nestjs-auth, nestjs-authentication, nestjs-authentication-and-authorization, nestjs-backend, nestjs-boilerplate, nestjs-docker, nestjs-jwt, nestjs-jwt-typeorm, nestjs-redis, nestjs-starter-template, nestjs-swagger, nestjs-typeorm, typeorm, typescript
- Language: TypeScript
- Homepage:
- Size: 3.38 MB
- Stars: 226
- Watchers: 1
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nestjs - NestJs Authentication - NestJS Authentication without Passport using Bcrypt, JWT and Redis (Resources)
README
# NestJS Authentication


[](./LICENSE)
[](https://hits.dwyl.com/anilahir/nestjs-authentication-and-authorization)## 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
```bash
$ npm install
```### 2. Rename the .env.example filename to .env and set your local variables
```bash
$ mv .env.example .env
```### 3. Start the application
```bash
# development
$ npm run start# watch mode
$ npm run start:dev# production mode
$ npm run start:prod
```## Docker for development
```bash
# start the application
$ npm run docker:up# stop the application
$ npm run docker:down
```## Swagger documentation
- [localhost:3000/docs](http://localhost:3000/docs)
## References
- [NestJS Authentication without Passport](https://trilon.io/blog/nestjs-authentication-without-passport)
- [NestJS, Redis and Postgres local development with Docker Compose](https://www.tomray.dev/nestjs-docker-compose-postgres)## Author
👤 **Anil Ahir**
- Twitter: [@anilahir220](https://twitter.com/anilahir220)
- Github: [@anilahir](https://github.com/anilahir)
- LinkedIn: [@anilahir](https://www.linkedin.com/in/anilahir)## Show your support
Give a ⭐️ if this project helped you!
## Related projects
Explore more NestJS example projects:
[](https://github.com/anilahir/nestjs-graphql-demo)
## License
Release under the terms of [MIT](./LICENSE)