Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose
About JwtService utilities module based on the nestjs/jwt package Authentication using NestJS & JWT Token, JwtService and cookies as access token & refresh token.
https://github.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose
boilerplate docker helmet husky jwt-cookie jwt-refresh-token jwtservice nest-js nestjs-api nestjs-backend nestjs-boilerplate nestjs-docker nestjs-env nestjs-mongoose nestjs-starter-template nestjs-typescript nodemailer rest-api swagger winston
Last synced: about 2 months ago
JSON representation
About JwtService utilities module based on the nestjs/jwt package Authentication using NestJS & JWT Token, JwtService and cookies as access token & refresh token.
- Host: GitHub
- URL: https://github.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose
- Owner: vinodnextcoder
- Created: 2023-12-29T13:04:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-18T06:52:36.000Z (10 months ago)
- Last Synced: 2024-10-12T18:21:02.453Z (3 months ago)
- Topics: boilerplate, docker, helmet, husky, jwt-cookie, jwt-refresh-token, jwtservice, nest-js, nestjs-api, nestjs-backend, nestjs-boilerplate, nestjs-docker, nestjs-env, nestjs-mongoose, nestjs-starter-template, nestjs-typescript, nodemailer, rest-api, swagger, winston
- Language: TypeScript
- Homepage: https://github.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose/wiki
- Size: 368 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NestJS Authentication JwtService
![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/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose.svg)](https://hits.dwyl.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose)## Description
NestJS Authentication with JwtService using Bcrypt @nestjs/jwt.
## Features
1. Register
2. Login
3. Unit test using jest## Technologies stack:
- Typescript, nestjs, JwtService, @nestjs/jwt
- Bcrypt
- mongoose## 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.development
```### 3. Start the application
```bash
# development
$ npm run start# watch mode
$ npm run start:dev# production mode
$ npm run start:prod
```### Swagger documentation for nestjs-mongoose-jwt
### Running
```bash
Once the application is running you can visit [http://localhost:3000/api](http://localhost:3000/api) to see the Swagger interface.
```## Author
👤 **Vinod**
- Github: [@vinodnextcoder](https://github.com/vinodnextcoder)
## Show your support
Give a ⭐️ if this project helped you!
## License
Release under the terms of [MIT](./LICENSE)