|
2 | 2 |
|
3 | 3 | # Getting Started with Sample React App |
4 | 4 |
|
5 | | -Sample React App is a simple react web app that can be used as a template/starting point for working with React Web framework. |
| 5 | +Sample React App is a simple react web app that can be used as a template/starting point for working with React Web framework. |
6 | 6 |
|
7 | 7 | Instructions to run the Sample React App; |
| 8 | + |
8 | 9 | 1. [Local Development](#run-the-sample-react-app-for-local-development) |
9 | 10 | 2. [IBM Cloud](#run-the-sample-react-app-on-IBM-cloud-for-free) |
10 | 11 |
|
11 | 12 | ### Run the Sample React App for local development |
| 13 | + |
12 | 14 | #### Pre-requisites |
| 15 | + |
13 | 16 | 1. [Install Node and NPM](https://nodejs.org/en/download/) |
14 | 17 |
|
15 | 18 | #### Build the App |
| 19 | + |
16 | 20 | - Start a terminal/CMD in `~/Project-Sample/sample-react-app` directory. |
17 | 21 | - Execute command `npm install`. |
18 | 22 |
|
19 | 23 | #### Run the App |
| 24 | + |
20 | 25 | - Execute command `npm start`. |
21 | 26 | - Open a web browser and enter `http://localhost:3000`. |
22 | 27 |
|
23 | 28 | #### Run App tests |
| 29 | + |
24 | 30 | - Execute command `npm test`. |
25 | 31 |
|
26 | 32 | ### Run the Sample React App on IBM Cloud for Free |
| 33 | + |
27 | 34 | #### Pre-requisites |
| 35 | + |
28 | 36 | 1. IBM Cloud Account: |
29 | | - - [Create free IBM Cloud account with $200 USD in credits](https://developer.ibm.com/callforcode/get-started/) |
| 37 | + - [Create free IBM Cloud account with $200 USD in credits](https://developer.ibm.com/callforcode/get-started/) |
30 | 38 | 2. [Install Node and NPM](https://nodejs.org/en/download/) |
31 | 39 |
|
32 | 40 | #### Build the App for production |
| 41 | + |
33 | 42 | - Start a terminal/CMD in `~/Project-Sample/sample-react-app` directory. |
34 | 43 | - Execute command `npm install` and `npm run build`. |
35 | 44 |
|
36 | 45 | A production ready app's build folder with all dependencies will be created in the `~/Project-Sample/sample-react-app/build` directory. |
37 | 46 |
|
38 | 47 | #### Deploy the App on IBM Cloud |
39 | 48 |
|
40 | | -The App can deployed on IBM Cloud for free with following two free services; |
| 49 | +The App can deployed on IBM Cloud for free with following; |
| 50 | + |
41 | 51 | 1. [IBM Cloud Object Storage](./docs/IBM_CLOUD_OBJECT_STORAGE_DEPLOYMENT.md) |
42 | | -2. [IBM Cloud Foundry](./docs/IBM_CLOUD_FOUNDRY_DEPLOYMENT.md) |
|
0 commit comments