Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
110

Latest Updates

Documenting code, one commit at a time.

NestJS 10 posts
×

Mastering User Lifecycle: Implementing Soft Deactivation in NestJS

Managing user accounts effectively is crucial for any application, balancing security, data integrity, and user experience. While permanent deletion might seem straightforward, there are often compelling reasons to opt for a soft deactivation strategy. This approach allows accounts to be rendered inactive without losing their associated data, providing flexibility for re-activation, maintaining

Streamlining User-Organization Association in NestJS

Managing user access and roles within different organizations is a common requirement in many modern applications. Whether it's a multi-tenant SaaS platform or an internal tool, efficiently associating users with their respective organizations is crucial for data segregation and access control.

The Challenge of Relationship Management

The core challenge lies in creating a robust and secure

Building a Team Project View Endpoint in NestJS

In the Acelerador-2.0 project, focused on accelerating project development, a key enhancement was recently implemented: a dedicated endpoint to retrieve and display a specific project associated with a team. This feature is crucial for enabling team members and managers to quickly access and review project details relevant to their team's activities.

Developing such an endpoint, especially

Enhancing API Efficiency: Filtering Active Teams and Standardizing Database Types

Context: Enhancing the Acelerador-2.0 API

In the Acelerador-2.0 project, continuous improvements are vital for a robust and efficient backend. Recent updates focused on two key areas: introducing a dedicated endpoint to retrieve only active teams and ensuring consistent date/time handling across the database to improve compatibility with PostgreSQL.

Challenge 1: Accessing Active Teams

Mastering Flexible Data Retrieval: Building a Filtered User API with NestJS and TypeORM

Building APIs that allow users to dynamically filter and search through data is a common, yet often complex, requirement. Without a structured approach, these endpoints can quickly become unmanageable.

In the Acelerador-2.0 project, we recently tackled this by implementing a robust GET /user/filter endpoint. This new feature empowers clients to list users with optional filters for name,

Streamlining Data Flow: Resolving DTO Mismatches and Database Type Errors in TypeORM

Developing robust applications often involves meticulous data handling, from the moment a client request hits the server to its persistence in the database. In the Acelerador-2.0 project, a recent update focused on enabling Daniela to visualize diploma state editing. This seemingly straightforward feature highlighted critical considerations in data transfer objects (DTOs) and database type

Acelerador 2.0: Securely Empowering Participants with Account Insights

Project Context

In the Acelerador 2.0 project, our goal is to provide a robust platform for participants. A key aspect of this involves enabling users to easily access their personal information related to program editions, participation status, and earned diplomas. This capability is crucial for enhancing user experience and transparency, allowing participants to keep track of their

Building Secure User-Specific Endpoints in NestJS: A Team Data Example

In the Acelerador-2.0 project, enabling users to efficiently view their associated teams was a key requirement. This involved creating a secure, authenticated endpoint that could differentiate between a user's roles (participant or mentor) and retrieve only the relevant team information.

The Challenge: Secure, Role-Aware Data Retrieval

The core problem was not just fetching team data, but

Securing Your API: Implementing Authenticated Endpoints and Swagger JWT with NestJS

Building robust and secure APIs is fundamental in modern web development. In our recent work on Acelerador 2.0, a significant enhancement involved introducing a new authenticated endpoint for fetching user-specific team data, alongside integrating JWT authentication directly into our Swagger documentation.