Skip to content

rafaelmagalhaesguedes/UserServiceApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

User Service App 👥

Node Express TypeScript JWT Redis Postgre Sequelize

Mocha Chai Sinon ESLint

React Testing Library React Router Styled Components




➡️ About

The User Service API provides features such as user authentication, profile management, role-based access control, and user analytics. The application is built with a focus on security and performance, ensuring that user data is protected while delivering a smooth user experience.


➡️ Technologies

  • Backend

    • Node, Express, TypeScript, JWT, PostgresSQL, Redis, Docker, Mocha, Sinon, Chai
  • Frontend

    • React, TypeScript, Vite, Vitest, Styled Components, Hooks
  • Deploy

    • Vercel and Railway

➡️ Usage

  1. Clone the project

  2. Inside of root project, run npm install:apps

  3. Run docker containers backend, Redis and database: npm run compose:up

  4. Run frontend: npm run dev


➡️ Tests Coverage

1. Backend - Go to app/backend and run: npm run test:coverage or npm run test

2. Frontend - Go to app/frontend and run: npm run coverage or npm run test

➡️ API Endpoints

▶️ Login

- POST /login - User login app

- GET /login/role - Get user role - (requires authorization)

▶️ User

- POST /user - Create a new user

- GET /user - Read a list of all users - (requires authorization)

- PUT /user/:id - Update a user - (requires authorization)

- DELETE /user/:id - Delete a user - (requires authorization)

➡️ ScreenShots

▶️ Login

Dashboard


▶️ Dashboard

Dashboard


▶️ Create User

Dashboard


▶️ Update User

Dashboard


▶️ Delete User

Dashboard


▶️ Tests Backend Coverage (Unit and Integration tests)

Dashboard