Profound.js greatly simplifies the development of database-driven applications for Web and Mobile. It helps in both creating new applications and modernizing legacy code.
For a high-level overview, see The Secret to Building Great Node.js Apps Unveiled, or visit http://www.profoundjs.com.
Profound.js consists of 3 main components:
Profound.js Connector – Commercial offering that provides streamlined connectivity options to popular relational databases (MySQL, SQL Server, Oracle, IBM Db2) and IBM i resources like DB2 data, programs, commands, service programs, and operating system API.
Profound.js Converter – Tool to automatically convert legacy RPGLE code into clean Node.js code.
To install Profound.js, create a new directory and issue the command "npm install profoundjs" as follows:
mkdir profoundjs cd profoundjs npm install profoundjs
Follow the npm install prompts to complete the installation.
When installing Profound.js on IBM i, you will also be prompted to install Profound.js Connector IBM i ILE components. These components are required for many of the features provided by Profound.js. Profound.js Connector requires a valid license key. You can request a trial license key by contacting Profound Logic.
The Profound.js installation process will create a start.js file in your directory. It will look something like this:
#!/usr/bin/env node// Load Profound.jsvar profoundjs = ;// Process command line argumentsprofoundjsrlog = processargv;profoundjstlog = processargv;// Apply configurationvar config = ;profoundjs;// Start Profound.js servervar isWorker = profoundjsserver;if isWorker// This is the top-level Express Application.// Custom Express coding can be added here.var express = profoundjsserverexpress;var app = profoundjsserverapp;app; // default to use JSON-encoded post data
Using Node, the server can be started as follows:
Or, it can be started using the STRTCPSVR command on IBM i.
For more detailed information on how to install and use Profound.js, visit the Profound.js Documentation site.