Profound.js modernizes your IBM i with an agile, iterative, and low risk approach that taps into the capabilities of Node.js.
This Profound.js Framework and Server is part of an overall solution that also includes Profound.js Connector, Profound UI, and an automated RPG to Node.js converter provided by Profound Logic.
Profound.js relies on Profound UI (the framework for Rich User Interfaces on IBM i). You should install Profound UI from Profound Logic prior to installing Profound.js.
To install Profound.js, create a new directory and issue the command "npm install profoundjs" as follows:
mkdir profoundjscd profoundjsnpm install profoundjs
Npm install will prompt you for the Profound UI static files directory. If you installed Profound UI into its default installation directory on IBM i, simply press enter to accept the default; otherwise, type the path of your Profound UI htdocs directory. If installing outside of IBM i, you should copy the Profound UI htdocs directory from IBM i into your directory.
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 = ;// Get command line argumentsvar argv = processargv;var port = argv"p" || argv"port" || 8081;var host = argv"h" || argv"host" || "0.0.0.0";profoundjsrlog = processargv;profoundjstlog = processargv;// Apply configurationvar config = ;profoundjs;// Start Profound.js serverprofoundjsserver;console;
Using Node, the server can be started as follows:
Or, it can be submitted as an IBM i job.
For more detailed information on how to install and use Profond.js, visit the Profound.js Documentation site.