Skip to content

Latest commit

 

History

History
 
 

sample-react-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Website

Getting Started with Sample React App

Sample React App is a simple react web app that can be used as a template/starting point for working with React Web framework.

Instructions to run the Sample React App;

  1. Local Development
  2. IBM Cloud

Run the Sample React App for local development

Pre-requisites

  1. Install Node and NPM

Build the App

  • Start a terminal/CMD in ~/Project-Sample/sample-react-app directory.
  • Execute command npm install.

Run the App

  • Execute command npm start.
  • Open a web browser and enter http://localhost:3000.

Run App tests

  • Execute command npm test.

Run the Sample React App on IBM Cloud for Free

Pre-requisites

  1. IBM Cloud Account:
  2. Install Node and NPM

Build the App for production

  • Start a terminal/CMD in ~/Project-Sample/sample-react-app directory.
  • Execute command npm install and npm run build.

A production ready app's build folder with all dependencies will be created in the ~/Project-Sample/sample-react-app/build directory.

Deploy the App on IBM Cloud

The App can deployed on IBM Cloud for free with following two free services;

  1. IBM Cloud Object Storage
  2. IBM Cloud Foundry