Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 982 Bytes

File metadata and controls

45 lines (31 loc) · 982 Bytes

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