@@ -45,21 +45,23 @@ $ export docker_username="YOUR_DOCKER_USERNAME"
4545
4646### 1. Clone the repo
4747
48- Clone the ` react-redux-api-example ` locally. In a terminal, run:
48+ Clone the repo locally. In a terminal, run:
4949
5050```
51- $ git clone https://github.com/rizcheldayao/ react-redux-api-example.git
51+ $ git clone https://github.com/IBM/deploy- react-kubernetes
5252```
5353
5454### 2. Run the application
55551 . Install [ Node.js] ( https://nodejs.org/en/ )
56562 . Run the following commands in a terminal:
5757
58- ` $ npm install `
58+ ```
59+ $ npm install`
5960
60- ` $ npm run build-css `
61+ $ npm run build-css
6162
62- ` $ npm run start `
63+ $ npm run start
64+ ```
6365
6466## Run the application using Docker
65671 . [ Build the image] ( #1-build-the-image )
@@ -68,18 +70,23 @@ $ git clone https://github.com/rizcheldayao/react-redux-api-example.git
6870### 1. Build the image
6971
7072In a terminal, run:
71-
72- ` $ docker build -t $docker_username/deploy-react-kubernetes . `
73+ ```
74+ $ docker build -t $docker_username/deploy-react-kubernetes .
75+ ```
7376
7477Your image should be listed by running:
7578
76- ` $ docker images `
79+ ```
80+ $ docker images
81+ ```
7782
7883### 1. Run the image
7984
8085In a terminal, run:
8186
82- ` $ docker run -p 3000:3000 -d $docker_username/deploy-react-kubernetes `
87+ ```
88+ $ docker run -p 3000:3000 -d $docker_username/deploy-react-kubernetes
89+ ```
8390
8491You can now access the application at http://localhost:3000
8592
@@ -89,7 +96,10 @@ You can now access the application at http://localhost:3000
89962 . [ Deploy the application] ( #2-deploy-the-application )
9097
9198## Prerequisites
92- * Create a namespace ` bx cr namespace-add <your_namespace> `
99+ * Create a namespace
100+ ```
101+ $ bx cr namespace-add <your_namespace>
102+ ```
93103
94104### 1. Build Docker image
95105
@@ -98,7 +108,7 @@ In a terminal, run:
98108$ bx cr build -t registry.<ibm_cloud_region>.bluemix.net/<your_namespace>/deploy-react-kubernetes .
99109```
100110
101- ### 2. Deploy the application.
111+ ### 2. Deploy the application
102112
103113```
104114$ kubectl run deploy-react-kubernetes-deployment —-image= registry.<ibm_cloud_region>.bluemix.net/<your_namespace>/deploy-react-kubernetes
0 commit comments