Node.js on IBM i
From RPG developer to modern IBM i developer.
Begin with small programs that make Node.js and the IBM i environment familiar. Then use those skills to build and deploy one complete tools rental application.
Part 1
Get comfortable with Node.js on IBM i
Start with the environment, a Hello World program, npm, and a safe first Db2 query.
Why Should an RPG Developer Care About Node.js?
Learn where Node.js fits on IBM i, why it complements RPG, and when it can make APIs, JSON, and integrations easier.
PASE Explained for IBM i Developers
Understand where Node.js runs on IBM i, how PASE relates to the operating system, and which shell and IFS concepts you need first.
Installing Node.js on IBM i
Install a supported Node.js LTS release on IBM i, set the correct PATH, and verify that Node.js and npm are ready.
Your First Node.js Program on IBM i
Create a small JavaScript file in the IFS, run it with Node.js, and understand each part without a JavaScript crash course.
npm and package.json Explained
Turn your IBM i Node.js folder into a managed project and understand dependencies, scripts, package-lock.json, and node_modules.
Connect Node.js to Db2 for i
Use IBM's promise-based connector to establish a local Db2 for i connection and understand the job, authority, and naming context.
Run Your First SQL Query from Node.js
Query Db2 for i from Node.js, inspect the returned rows, and add safe filtering with parameter markers.
Part 2
Build the Tools Rental application
Carry one practical IBM i application from its first source file through testing and deployment.