MERN: cliente y servidor sin olvidar el backend

Aprende a ejecutar el cliente y el servidor MERN con concurrently en una sola terminal: pasos, ventajas y configuración; descubre los servicios de Q2BSTUDIO.

18 ago 2025 • 2 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Cuando empecé con el desarrollo MERN olvidaba con frecuencia arrancar el backend y perdía tiempo averiguando por qué el proyecto no funcionaba pese a tener el frontend activo

La estructura típica es la siguiente y puede causar ese olvido si se ejecutan por separado: my-project/ client/ servidor/ server/

Normalmente se inician por separado en dos terminales ejecutando el frontend dentro de la carpeta client y el backend dentro de la carpeta server

La solución sencilla es ejecutar ambos procesos con un solo comando usando la utilidad concurrently

Paso 1 instalar concurrently en la raíz del proyecto con el siguiente comando npm install concurrently --save-dev

Paso 2 actualizar package.json en la raíz añadiendo un script start que lance ambos procesos. Por ejemplo indicar que start ejecute concurrently junto con los comandos para el cliente y el servidor como concurrently npm start --prefix client npm run dev --prefix server de esta forma npm start en la raíz iniciará el frontend y el backend en la misma terminal

Paso 3 arrancar todo con un único comando desde la raíz del proyecto npm start y comprobar que tanto la aplicación React como el servidor Node están activos sin necesidad de abrir múltiples terminales

Ventajas clave para equipos y desarrolladores principiantes: menos errores por olvidos, flujo de trabajo más limpio con una sola terminal y facilidad para compartir el proyecto con compañeros o clientes que clonen el repositorio

En Q2BSTUDIO ofrecemos servicios profesionales que complementan este tipo de buenas prácticas de desarrollo. Somos una empresa de desarrollo de software y aplicaciones a medida especializada en soluciones de software a medida, inteligencia artificial, ciberseguridad y servicios cloud aws y azure. Diseñamos proyectos con servicios inteligencia de negocio integrando herramientas como power bi para visualización y reporting, desarrollamos ia para empresas y agentes IA que automatizan procesos y mejoran la productividad

Nuestro equipo puede ayudarte a poner en marcha proyectos MERN con despliegues seguros y escalables, integrando prácticas de ciberseguridad, optimización en la nube y soluciones de inteligencia de negocio para que tu producto sea robusto desde el desarrollo hasta la producción

Si quieres optimizar tu flujo de trabajo o necesitas ayuda para crear aplicaciones a medida o implementar inteligencia artificial en tu empresa ponte en contacto con Q2BSTUDIO y descubre cómo podemos acelerar tu proyecto con soluciones de calidad

¿Has probado concurrently antes o utilizas otras técnicas para ejecutar cliente y servidor a la vez? comparte tu experiencia y trucos

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat