Refactor: Apply Clean Architecture, Patrols Design, Principles Solid
@DontStopPrograming y travaille déjà.
Depuis le 23/7/2024.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
DESCRIPTION:
Refactor the project to improve maintainability and scalability. This involves reorganizing the project structure and updating the code to adhere to these principles.
TASK:
1. Controllers:
- Implement the functions 'getsUserList, getUserList, postUserList, patchUserList, delUserList' using the services
2. Data:
- Structure the JSON file to store user data
3. Repositories:
- Implement functions for reading and writing user data
4. Middleware:
- Implement JWT authentication and error handling
5. Utilities:
- Implement utilities for generating JWT tokens and hashing passwords
6. Services:
- Encapsulate business logic for user operations
7. Routes:
- Define routes and apply authentication and authorization middleware
8. Main Application
- Configure the Express Application with security, compression, logging, and rate limiting
JUSTIFICATION
These changes will improve the code structure, making it easier to maintain. Applying these principles helps to keep the code organized, modular, and scalable.
IMPACT
This refactor is not expected to affect existing functionalities, but thorough testing is required to ensure everything works correctly after the changes.
REFERENCES
- Clean Architecture
- SOLID Principles
- Middleware Pattern
- Langage dominant
- JavaScript
- Étoiles
- 0
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
palladius/rails8-app-on-gcp#145 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
web-platform-tests/interop#1455 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
corsairdev/corsair#1764 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100