https://github.com/sangtrandev00/nestjs-redis-example
https://github.com/sangtrandev00/nestjs-redis-example
ioredis nestjs-redis redis
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sangtrandev00/nestjs-redis-example
- Owner: sangtrandev00
- License: mit
- Created: 2024-08-19T15:59:57.000Z (about 1 year ago)
- Default Branch: develop
- Last Pushed: 2024-10-29T18:08:58.000Z (11 months ago)
- Last Synced: 2024-10-29T20:12:26.341Z (11 months ago)
- Topics: ioredis, nestjs-redis, redis
- Language: TypeScript
- Homepage:
- Size: 1.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NestJS Authentication (Redis Focus)


[](./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
## Config author: sangtrandev
👤 **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)