Skip to content

Instantly share code, notes, and snippets.

@thieux
Last active October 5, 2016 20:38
Show Gist options
  • Select an option

  • Save thieux/992c019a7e4ab7489abd0fd7927eee7b to your computer and use it in GitHub Desktop.

Select an option

Save thieux/992c019a7e4ab7489abd0fd7927eee7b to your computer and use it in GitHub Desktop.

React Hello World

I prepare an environment with the last version of nodejs.

In /home/m/opensource/react-hello-world/nodepath.bash

#!/bin/bash

PATH="/home/m/node-v6.2.1-linux-x64/bin:$PATH"

I check nodejs environment.

$ . ./nodepath.bash
$ node --version
v6.2.1

Then I install create-react-app in this environment.

$ . ./nodepath.bash
$ npm install -g create-react-app

This creates /home/m/node-v6.2.1-linux-x64/bin/create-react-app.

$ create-react-app hello-world

This creates /home/m/opensource/react-hello-world/hello-world.

Let's run the development server:

$ cd hello-world
$ npm start

The application is running at: http://localhost:3000/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment