Skip to content

NestJS Authentication without Passport using GraphQL, Bcrypt, JWT and Redis

License

Notifications You must be signed in to change notification settings

anilahir/nestjs-graphql-demo

Repository files navigation

NestJS GraphQL Demo

Prettier GPL v3 License HitCount

Description

NestJS Authentication without Passport using GraphQL, Bcrypt, JWT and Redis

Features

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

Technologies stack:

  • GraphQL
  • 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

References

Author

👤 Anil Ahir

Show your support

Give a ⭐️ if this project helped you!

License

Release under the terms of MIT