Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rafaelmagalhaesguedes/authmicroservicets

Authentication Microservice provides features such as user authentication, profile management and role-based access control. The application is built with a focus on security and performance, ensuring that user data is protected while delivering a smooth user experience.
https://github.com/rafaelmagalhaesguedes/authmicroservicets

chai docker express hooks jwt-authentication mocha node postgresql react sequelize sinon styled-components typescript vite vitest vscode

Last synced: 9 days ago
JSON representation

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

Awesome Lists containing this project

README

        

Authentication Microservice 👥


Node
Express
TypeScript
JWT
Redis
Postgre
Sequelize


Mocha
Chai
Sinon
ESLint


React
Testing Library
React Router
Styled Components






## ➡️ About


Authentication Microservice provides features such as user authentication, profile management and role-based access control. 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](screenshots/login.png)


## ▶️ Dashboard
![Dashboard](screenshots/dashboard.png)


## ▶️ Create User
![Dashboard](screenshots/registerUser.png)


## ▶️ Update User
![Dashboard](screenshots/updateUser.png)


## ▶️ Delete User
![Dashboard](screenshots/deleteUser.png)


## ▶️ Tests Backend Coverage (Unit and Integration tests)
![Dashboard](screenshots/testsBackend.png)