Skip to content

Commit 4f6f66c

Browse files
author
Sanjeev Ghimire
committed
video added.
1 parent bc5756d commit 4f6f66c

File tree

3 files changed

+432
-16
lines changed

3 files changed

+432
-16
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ This is an application which uses Node.js to connect to IBM Db2 Warehouse on Clo
1111
3. Node.js app exposes API to interact with IBM Db2 Warehouse on Cloud.
1212
4. An Angular frontend application to collect home sales data and call API to store that data to IBM Db2 Warehouse on Cloud.
1313

14+
## Video
15+
16+
[![CRUD application using Node.js and IBM Db2](https://img.youtube.com/vi/bdQtPS4OStw/0.jpg)](https://youtu.be/bdQtPS4OStw)
17+
1418
## Steps
1519

1620
1. [Clone The Repo](#1-clone-the-repo)
@@ -66,10 +70,10 @@ docker exec -ti mydb2 bash -c "su - db2inst1"
6670

6771
Once this is done, it will create a db2 docker container with the follow customizations:
6872

69-
* IP Address/Domain: `localhost`
70-
* Port: `50000`
71-
* Database name: `homesalesdb`
72-
* Username: `db2inst1`
73+
* IP Address/Domain: `localhost`
74+
* Port: `50000`
75+
* Database name: `homesalesdb`
76+
* Username: `db2inst1`
7377
* Password: `hackathon`
7478

7579

server.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ let connStr = "DATABASE="+process.env.DB_DATABASE+";HOSTNAME="+process.env.DB_HO
3737
//let connStr = "DATABASE=BLUDB;HOSTNAME=db2whoc-flex-zipnqsp.services.au-syd.bluemix.net;PORT=50000;PROTOCOL=TCPIP;UID=bluadmin;PWD=zWG@U4q1uFpDTi0v8jVBDI7_PtSr0;";
3838

3939
app.post('/newDataEntry', function(request, response){
40-
console.log('NEW DATA API CALL:');
41-
console.log(request);
40+
console.log('NEW DATA API CALL:');
4241
var house = JSON.parse(request.body['house']);
43-
4442
console.log(house['lotArea']);
4543

4644
ibmdb.open(connStr, function (err,conn) {

0 commit comments

Comments
 (0)