J José Leiva
Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
64

Latest Updates

Documenting code, one commit at a time.

Setting Up a Modern Web Development Environment with Vite and React

Getting Started

Starting a new project often feels like packing for a long trip—you need the right tools organized efficiently before you can move forward. In the jleiva22/proyecto-electivo project, we recently focused on establishing a robust development environment to ensure a smooth transition from configuration to coding.

Why Vite?

Think of Vite as the high-speed rail of the frontend world. Unlike older build tools that bundle your entire application before starting the server,

Structuring MVC Patterns in Laravel: Moving Beyond the Basics

When starting a new project, it is easy to let your logic sprawl across files, leaving you with controllers that do too much and views that lack consistency. Recently, while working on the electivo-laravel project, I focused on enforcing a cleaner separation of concerns by standardizing our models, controllers, and views.

The Problem of Monolithic Controllers

In the early stages of development, it is tempting to dump database queries and business logic directly into controller methods.

Streamlining MVC Architecture in Electivo-Laravel

Introduction

In the electivo-laravel project, we have been focusing on refining the application structure to follow the Model-View-Controller (MVC) pattern more effectively. By decoupling business logic from routing, we ensure the codebase remains maintainable as the project grows.

The MVC Approach

Think of the MVC pattern like a restaurant. The Model is the kitchen staff (data management), the View is the dining room (UI/UX), and the Controller is the waiter (handling requests and