Skip to content

This project is built using NestJS, featuring a complete authentication system implemented with Prisma and PostgreSQL for logging in. It incorporates class-validator for DTO validation and utilizes JWT tokens and refresh tokens for authentication.

Notifications You must be signed in to change notification settings

Matheuscara/nest-auth

Repository files navigation

Nest-Auth

Description

This project is built using NestJS, featuring a complete authentication system implemented with Prisma and PostgreSQL for logging in. It incorporates class-validator for DTO validation and utilizes JWT tokens and refresh tokens for authentication.

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/Matheuscara/nest-auth.git
  2. Navigate to the project directory:

    cd Nest-Auth
  3. Install dependencies:

    npm install
  4. Initialize Prisma:

    npx prisma init
  5. Run database migrations:

    npx prisma migrate dev
  6. Install Prisma provider to verify the database (optional):

    npx prisma studio
  7. Configure your database environment variables. Refer to the Prisma documentation for guidance on managing environment variables and setting up your .env file.

  8. Run Dockerfile (if applicable).

Running the Project

To start the development server, use the following command:

npm run start:dev

Additional Notes

Make sure you have Docker installed and running if you plan to utilize Dockerfile.

About

This project is built using NestJS, featuring a complete authentication system implemented with Prisma and PostgreSQL for logging in. It incorporates class-validator for DTO validation and utilizes JWT tokens and refresh tokens for authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages