Deploying a React Web App with IBM Cloud Kubernetes Service

5 min read

By: Jennie Oliver

Quickly create and deploy a MERN stack in a Kubernetes container

The IBM NodeJS team has built a starter for developers to quickly create and deploy a MERN stack in a Kubernetes container.

You may ask: “What is a MERN stack?” MERN stands for MongoDB, Express, React, and NodeJS. Our MERN starter is a working application with a React front-end that makes HTTP requests to an Express/Node.js back-end, where sessions are persisted using MongoDB.

MERN

MongoDB is a free, open-source, NoSQL database program. It stores data in JSON-like documents and does not rely on a schema like relational databases do. We like it because it’s flexible, easy to work with, and free!

React is a JavaScript library used to build user interfaces. It is not a framework like Angular—it’s a library, which means it’s very lightweight and is great for building UI components. In fact, one of the main benefits of React is that it enables component-driven development. A UI can be broken down into separate components that are reusable and easier to debug.

IBM Cloud Kubernetes Service

We recommend deploying the MERN application using the IBM Cloud Kubernetes Service, which provides a native Kubernetes experience. Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. The IBM Cloud Kubernetes Service is highly secure, easy to use, and fully manages your Kubernetes clusters, allowing the developer to focus on the fun stuff—building applications.

We also suggest using minikube to create a local cluster for testing.

Get the starter app

Check out the open-sourced MERN-app repository on github for more information and detailed instructions. The repository has code to create a web app that is pre-configured with the MERN stack.

Be the first to hear about news, product updates, and innovation from IBM Cloud