This is a simple hello world example to show a Node.js connection to InterSystems IRIS.
-
Open Samples-nodejs-helloworld/HelloWorld.js
-
For AWS, GCP, or Azure ONLY: Edit line 7 and change the value of ip to "try-iris" (Please skip this step if using InterSystems Learning Labs)
-
In the integrated terminal window, type:
cd /home/project/Samples-nodejs-helloworld
npm install intersystems-iris-native
node HelloWorld.js
-
Clone this repo and open it in your favorite IDE (such as Visual Studio Code)
-
Open Samples-nodejs-helloworld/HelloWorld.js
-
Verify the values for host, port, username, and password. Update as needed.
-
In the integrated terminal window, navigate to your repository's home directory and type:
npm install intersystems-iris-native
node HelloWorld.js