Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 939 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 939 Bytes

Samples-nodejs-helloworld

This is a simple hello world example to show a Node.js connection to InterSystems IRIS.

To run in InterSystems Learning Labs, AWS, GCP, or Azure

  1. Open Samples-nodejs-helloworld/HelloWorld.js

  2. 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)

  3. In the integrated terminal window, type:

    • cd /home/project/Samples-nodejs-helloworld
    • npm install intersystems-iris-native
    • node HelloWorld.js

To run locally

  1. Clone this repo and open it in your favorite IDE (such as Visual Studio Code)

  2. Open Samples-nodejs-helloworld/HelloWorld.js

  3. Verify the values for host, port, username, and password. Update as needed.

  4. In the integrated terminal window, navigate to your repository's home directory and type:

    • npm install intersystems-iris-native
    • node HelloWorld.js