Skip to content

This is an API built with Node.js, Express, Docker, Prisma, and PostgreSQL. It implements a complete authentication flow using JWT tokens to securely validate users.

Notifications You must be signed in to change notification settings

d0ugui/jwt-nodejs

Repository files navigation

jwt-nodejs

Server Structure
Server

This is an API built with Node.js, Express, Docker, Prisma, and PostgreSQL, following some clean architecture and SOLID principles. It implements an authentication flow using JWT Tokens. The project employs design patterns like dependency inversion and factory patterns to ensure scalability and maintainability.

Installation

Important

To setup and run the client, ensure you have Node.js (20.16.0 or higher) installed.

Remember to change the provided example variables to actual values ​​in the .env file.

Clone the repository

git clone git@github.com:d0ugui/jwt-nodejs
cd jwt-nodejs

Create .env file

cp .env.example .env

Create and start the containers

docker compose up -d

Run database migrations

pnpm prisma migrate dev

Start the server

pnpm dev

About

This is an API built with Node.js, Express, Docker, Prisma, and PostgreSQL. It implements a complete authentication flow using JWT tokens to securely validate users.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published