Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
82

Latest Updates

Documenting code, one commit at a time.

Node.js 4 posts
×

Implementing Custom Middleware in BACK_DIARIO

The Goal

In the BACK_DIARIO project, we needed a cleaner way to handle cross-cutting concerns like request logging and authentication checks. By integrating custom middleware, we can intercept incoming requests before they reach our route handlers, ensuring that our application logic remains decoupled and modular.

The Implementation

In an Express-based application, middleware acts like

Scaling Data Persistence: Implementing Modular Product Models

Building a robust backend requires more than just functional code; it requires a clear separation of concerns. In the coderHouse_Entregable1_ZelayaNoeliaJudith project, we recently refactored how our application handles product data, moving from monolithic controller logic to a structured model-based approach.

The Challenge

As our product catalog grew, our Express controllers became

Keeping Repositories Lean: The Impact of Proper Dependency Management

Managing a repository effectively is about more than just writing clean logic; it is about maintaining the integrity of the environment. A common oversight in modern development workflows is the inclusion of unnecessary artifacts within version control, such as the node_modules directory.

The Problem with Bloated Repositories

When we commit node_modules to a repository, we inadvertently

Optimizing Repository Hygiene: Managing Node Dependencies

The Problem

In our project noeliajz/coderHouse_Entregable1_ZelayaNoeliaJudith, we encountered a common issue in repository management: the accidental inclusion of the node_modules directory in version control. This significantly increased the repository size, led to unnecessary noise in diffs, and created potential cross-platform compatibility issues for collaborators.

The Approach