Sample React application that can run on Docker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
nginx
public
src
.gitignore
.travis.yml
Dockerfile
README.md
package-lock.json
package.json

README.md

hello-world-react

Build Status

This repository contains a React Hello World application that runs on Docker. It is served via Nginx, and CI is provided by TravisCI.

The React application is simply a slightly modified application by create-react-app.

Run it in Docker

Running the application on Docker is straight forward:

  • docker build -t hello-world-react . to build the Docker image
  • docker run -p 8080:80 hello-world-react to fire up the container

Visit http://localhost:8080, or any port you set it to to view the application.

Run the development server

You can also run the application on the default React development server by simply running npm start in the project's root. It'll fire up the application on http://localhost:3000.