Simple DB2 / node.js demonstration for IBM Bluemix, track visitor by IP, lookup geolocation and store in IBM DB2.
This is a simple demo combining DB2 and node.js on IBM Bluemix to track visitors of a website by IP address, to lookup the geolocation for the IP address and to store the information in a IBM DB2 database. The application can also be run locally with a node runtime environment. It needs a private file db2cred.json to hold login information for a DB2 database. The format of that file is described in the first blog article linked below.
Most of the code is explained in the following blog articles:
- Accessing DB2 from node.js on IBM Bluemix and locally
- Sample IBM Bluemix Application: Extended IP logging with node.js and DB2
None
Step 1: If you don't already have a Bluemix account, go to [http://www.bluemix.net] (http://www.bluemix.net) and sign up (it's free).
Step 2: Log into your bluemix account.
Step 3: Navigate to the Bluemix catalog.
Step 4-x: About to come
Done
See LICENSE file.
Visit Henrik''s blog and follow him on Twitter: @data_henrik