Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Create: Implementation of a CRUD REST API with Express.js and MongoDB

Abierto
#3 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
express, mongodb, nodejs, typescript
Área
api, backend, database

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DontStopPrograming/Backend_standard

Todos los issues de DontStopPrograming/Backend_standard

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.