Create: Implementation of a CRUD REST API with Express.js and MongoDB
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
Comienza inspeccionando la estructura del repositorio y la configuración existente del proyecto antes de planificar la implementación. El issue identifica las capas necesarias —configuración, modelos, servicios, controladores, rutas, validación y manejo de errores— y menciona .env, Postman y ThunderClient como puntos de entrada relevantes. Se considera terminado cuando las operaciones CRUD funcionan para el recurso elegido, MongoDB utiliza la base de datos de .env y la API está documentada y probada funcionalmente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Implement a REST API that allows performing CRUD (Create, Read, Update, Delete) operations on a specific resource using Express.js, MongoDB, and Mongoose. The implementation should follow principles of separation if concerns, Clean Architecture, and best practices in managing routes, controllers, services, and models.
Task to complete:
1.Develop the project structure:
- Set up a Node.js project with TypeScript
- Organize the folder and file structure to reflect the separation of concerns
2.Configure MongoDB connection:
- Create a configuration file for connecting to MongoDB using Mongoose.
- Ensure the connection correctly uses the database specified in the .env file
3.Define the resource model and interface:
- Create the resource interface(e.g. Vehicle) that reflects the required properties.
- Implemente the Mongoose Schema and Model based on the interface
4.Implement CRUD services:
- Develop service functions to handle CRUD operations for the resource
- Ensure that service functions are decoupled from the controllers
5.Create controllers and routes:
- Implement controllers that manage HTTP request for CRUD operations
- Define and set up the corresponding REST routes in Express.js
6.Add validations and error handling:
- Implement data validations in the controllers or models
- Create an error-handling middleware to capture and manage exceptions in the API
7.Document the API:
- Provice clear and concise documentation
8.Perform functional testing:
- Use tools like Postman, ThunderClient to test and validate CRUD operations
- Ensure that data is correctly stored, update and deleted in MongoDB
Criteria:
- The API should allow performing all CRUD operations on the defined resource.
- The database connection should be stable and use the database specified in the .env file
- The project structure should follow Clean Architecture principles and coding best practices
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
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.
Más de DontStopPrograming/Backend_standard
-
Feat: Implement JWT and bcrypt securityQuizá libre de nuevo @DontStopPrograming la tomó hace 674 días y no hay ningún pull request abierto. Abierto
DontStopPrograming/Backend_standard#4 · 1 asignado ·
-
Add: Set up TypeScriptQuizá libre de nuevo @DontStopPrograming la tomó hace 800 días y no hay ningún pull request abierto. Abierto
DontStopPrograming/Backend_standard#2 · 1 asignado ·
-
Create: Initial Express Server SetupQuizá libre de nuevo @DontStopPrograming la tomó hace 800 días y no hay ningún pull request abierto. Abiertogood first issue
DontStopPrograming/Backend_standard#1 · 1 comentario · 1 asignado ·
Todos los issues de DontStopPrograming/Backend_standard
Issues similares
-
[Bug] The clients language filter cannot select the rows the page labels as unknownPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/rocketmq-dashboard#6103 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
cockpit-project/cockpit-machines#2835 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cloudflare/kumo#866 ·
Los mantenedores suelen responder en 1 día
-
area:connector bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
autoInject recall silently drops memory injection on long / non-Latin prompts (HTTP 400 Query too long)Posiblemente ocupada @Epsilon006 la tomó hoy. Abiertointegration:coding-agents
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
vectorize-io/hindsight#5476 · 1 comentario ·
Los mantenedores suelen responder en 1 día