Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
188

Latest Updates

Documenting code, one commit at a time.

Express 7 posts
×
0 JavaScript Express

Scaling Data Management: Implementing Patient Actions in backend-vet

Introduction

In the context of the backend-vet project, managing domain-specific entities efficiently is crucial for a clean architecture. Recently, I worked on implementing core actions for managing patient entities, ensuring that the application can handle data operations in a predictable and scalable way.

The Challenge of Domain Actions

When scaling a backend system, it is easy to let

0 JavaScript Express

Securing Your Express APIs: Implementing CORS Policies

Introduction

When building a backend service with Express, one of the most common hurdles developers face is the Cross-Origin Resource Sharing (CORS) error. In the backend-repaso-general project, we recently implemented CORS middleware to ensure our API can safely communicate with frontend clients hosted on different origins.

The CORS Challenge

By default, web browsers block

Scaling Up: Enhancing Backend Architecture with Express and MongoDB

The Challenge

Working on the Agusme/back1-primer-repo, we recently faced the need to streamline our backend service layers. As the application grows, managing database interactions and route handling efficiently becomes critical to maintaining performance and readability.

The Solution

We focused on refactoring our request lifecycle within the Express framework to ensure better

Standardizing Input Validation in Agusme/backend-bmz with express-validator

Streamlining API Reliability

Validation is the gatekeeper of your API. Without it, your application is left to handle malformed data, leading to brittle code and unpredictable server errors. In the Agusme/backend-bmz project, we have introduced express-validator to standardize how we sanitize and validate incoming requests, shifting the burden of data integrity from our controllers to a

Establishing Robust Data Foundations in Express Applications

Every scalable web application relies on a reliable connection to its data layer. When starting the Agusme/back1-primer-repo project, the first hurdle isn't building complex business logic; it's ensuring that the bridge between your Express application and your database is stable, secure, and ready for growth.

The Connection Lifecycle

Think of your database connection as the foundation of a

Refining Resource Management: Updating Property Controllers

In the backend-bmz project, we have been working on streamlining our data management layer. Specifically, the focus has shifted toward refining our updateProperty controller. This work ensures that property-related data modifications remain consistent and reliable when interacting with our MongoDB database through Express.

Why Controller Refinement Matters

Think of a controller as the