Skip to content

Authentication system with access and refresh tokens using NestJS and Prisma

Notifications You must be signed in to change notification settings

TituxMetal/nestjs-auth

Repository files navigation

NestJs Complete Authentication

Implementation of a complete authentication system with access token and refresh token, using NestJS framework with Typescript, Prisma orm with PostgreSQL in Docker container.

This project was made from the awesome tutorials from Vladimir Agaev on its youtube channel

Usage

Before running the project you need to install the dependencies by running yarn install command. Then, you must create a .env file in the project root and add the needed environment variables (see .env.example file)

Make sure that you have a Postgres database up and running and change the DATABSE_URL environment variable in the .env file in the root of the project.

Alternatively, you can run the database in a Docker container with this command:

docker compose up -d

OR

yarn docker:up -d

For local development just run the yarn dev command, this will start the project in dev mode and deploy the prisma migrations.

About

Authentication system with access and refresh tokens using NestJS and Prisma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published