© Vasan Subramanian 2017

Vasan Subramanian, Pro MERN Stack, 10.1007/978-1-4842-2653-7_2

2. Hello World

Vasan Subramanian

(1)Bangalore, Karnataka, India

As is customary, we will start with a Hello World example, something that is a bare minimum application that uses MERN. The main purpose of any Hello World exercise is to create the environment that has most of the technology of the stack.

In the Hello World exercise, we’ll use React to render a simple page and use Node.js and Express to serve that page from a web server. This will also give you some insight into nvm, npm, and JSX transformation, some tools that you’ll need to get used to as you go along.

Server-Less Hello World

To quickly get off the ground, let’s write a simple piece of code in a ...

Get Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.