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
11
11
3 . Node.js app exposes API to interact with IBM Db2 Warehouse on Cloud.
12
12
4 . An Angular frontend application to collect home sales data and call API to store that data to IBM Db2 Warehouse on Cloud.
13
13
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
+
14
18
## Steps
15
19
16
20
1 . [ Clone The Repo] ( #1-clone-the-repo )
@@ -66,10 +70,10 @@ docker exec -ti mydb2 bash -c "su - db2inst1"
66
70
67
71
Once this is done, it will create a db2 docker container with the follow customizations:
68
72
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 `
73
77
* Password: ` hackathon `
74
78
75
79
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
37
37
//let connStr = "DATABASE=BLUDB;HOSTNAME=db2whoc-flex-zipnqsp.services.au-syd.bluemix.net;PORT=50000;PROTOCOL=TCPIP;UID=bluadmin;PWD=zWG@U4q1uFpDTi0v8jVBDI7_PtSr0;";
38
38
39
39
app . post ( '/newDataEntry' , function ( request , response ) {
40
- console . log ( 'NEW DATA API CALL:' ) ;
41
- console . log ( request ) ;
40
+ console . log ( 'NEW DATA API CALL:' ) ;
42
41
var house = JSON . parse ( request . body [ 'house' ] ) ;
43
-
44
42
console . log ( house [ 'lotArea' ] ) ;
45
43
46
44
ibmdb . open ( connStr , function ( err , conn ) {
You can’t perform that action at this time.
0 commit comments