Skip to content

Latest commit

 

History

History
executable file
·
46 lines (32 loc) · 1.36 KB

README.MD

File metadata and controls

executable file
·
46 lines (32 loc) · 1.36 KB

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.