Refactor: Apply Clean Architecture, Patrols Design, Principles Solid
@DontStopPrograming ya está trabajando en esto.
Desde el 23/7/2024.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- JavaScript
- Estrellas
- 0
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Issues similares
-
ai-observability bug team/ai-observability
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
AllTheMods/ATM-10-L#19 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
SignalK/n2k-signalk#345 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
JuliaPluto/PlutoPlotly.jl#72 ·