Community

Deploying a React Web App with IBM Cloud Kubernetes Service

Share this post:

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.

 

Swift @ IBM - Development

More Community stories
February 18, 2019

Build a Container Image Inside a Kubernetes Cluster and Push it to IBM Cloud Container Registry

We're going to show you how to build a source into a container image from a Dockerfile inside a Kubernetes cluster and push the image to IBM Cloud Container Registry with Google's Kaniko tool.

Continue reading

February 18, 2019

VIDEO – Hybrid Cloud Architecture Part 1: Connectivity

We're excited to bring you Part 1 of our Hybrid Cloud Architecture video series: Connectivity. In this lightboarding video, we're going to explain how you can connect your various cloud environments in the overall hybrid cloud.

Continue reading

February 14, 2019

VIDEO – Hybrid Cloud Architecture: Intro

We're excited to introduce a three-part lightboarding video series that's going to delve into the world of hybrid cloud architecture. In this Intro video, Sai Vennam lay out the three major hybrid cloud architecture issues that we're going to cover in this series

Continue reading