Skip to content

Poc - In this project I created a user module, with registration, auth and login, using OWASP rules.

Notifications You must be signed in to change notification settings

SamucaDev/POC-fastify-prisma-jwt

Repository files navigation

Fastify Auth User System

⭐ Goal

My goal with this project is to create a Fastify project that is responsible for managing user authentication.

🔨 Quick start

Dependencies Version
Node >= 18
Npm >= 8
Docker 24.x
Docker Composer >= 1.29
  • Use these commands to install and start the application
  npm install
  docker-composer up
  npm run start

📊 Project

The project has a simple user system able to do all the user stuff, creation, authentication and management, using famous patterns of marketing and OWASP rules.

Therefore the authentication was made using JWT pattern, all the private routes have to send the Bearer token to get access to the application. The user's password is encrypted and saved in safety.

Routes:

  • Login
  • Create User
  • Find User
  • Get Users

📁 Folders Structure

MarineGEO circle logo

✨ Architecture

The project was create using functional paradigm also the project uses like a reference the clean architecture concepts.

The concepts used goals:

  • Facilitate maintenance of the code;
  • The next developer can undestand the code faster;
  • Easy to create tests.

About

Poc - In this project I created a user module, with registration, auth and login, using OWASP rules.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published