Skip to content

Commit b79d44e

Browse files
author
Wasin Waeosri
committed
change logs:
1. Now support ERROR_RESP response from the API 2. Change default simple web server port to 8080
1 parent 1f89d3a commit b79d44e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ The web application contains the following example files and folder:
4545
![npm command display](images/npm_install.png "npm command display")
4646

4747
3. If the machine is behind a proxy server, you need to configure Node.js uses proxy instead of a direct HTTP connection via the following command in command prompt: ```set https_proxy=http://<proxy.server>:<port>```
48-
4. Run ```$> node server.js``` in the command prompt to start the web server at HTTP port 3000
48+
4. Run ```$> node server.js``` in the command prompt to start the web server at HTTP port 8080
4949

5050
![application display](images/run_server.png "run server")
5151

52-
5. Open web browser (IE11, Chorme and Firefox), then navigate to index.html of the web server at ```http://localhost:3000/index.html```
52+
5. Open web browser (IE11, Chorme and Firefox), then navigate to index.html of the web server at ```http://localhost:8080/index.html```
5353

5454
![application display](images/application_screen.png "application display")
5555

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ let path = require('path');
44
const web_path = path.join(__dirname, './');
55

66
const app = express();
7-
const port = 3000;
7+
const port = 8080;
88

99
app.use(express.static(web_path));
1010

0 commit comments

Comments
 (0)