File tree Expand file tree Collapse file tree 3 files changed +432
-16
lines changed
Expand file tree Collapse file tree 3 files changed +432
-16
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ This is an application which uses Node.js to connect to IBM Db2 Warehouse on Clo
11113 . Node.js app exposes API to interact with IBM Db2 Warehouse on Cloud.
12124 . 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
16201 . [ Clone The Repo] ( #1-clone-the-repo )
@@ -66,10 +70,10 @@ docker exec -ti mydb2 bash -c "su - db2inst1"
6670
6771Once 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
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments