Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 26 days 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T04:28:39.000Z (8 months ago)
- Last Synced: 2024-04-11T05:59:01.085Z (8 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: 4.18 MB
- Stars: 85
- Watchers: 2
- Forks: 10
- 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
![Workflow Test](https://github.com/anilahir/nestjs-authentication-and-authorization/actions/workflows/ci.yml/badge.svg)
![Prettier](https://img.shields.io/badge/Code%20style-prettier-informational?logo=prettier&logoColor=white)
[![GPL v3 License](https://img.shields.io/badge/License-GPLv3-green.svg)](./LICENSE)
[![HitCount](https://hits.dwyl.com/anilahir/nestjs-authentication-and-authorization.svg)](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:
[![GraphQL example](https://github-readme-stats.vercel.app/api/pin/?username=anilahir&repo=nestjs-graphql-demo)](https://github.com/anilahir/nestjs-graphql-demo)
## License
Release under the terms of [MIT](./LICENSE)