Node.js

This section provides instructions for connecting your favorite IDE for Node.js, such as Visual Studio Code, Vim, or Webstorm, to InterSystems IRIS™. When you have connected using the following steps (log into GitHub if necessary), you can explore the InterSystems IRIS Native API for Node.js using First Look: InterSystems IRIS Native API for Node.js.
  1. In your web browser, download or clone https://github.com/intersystems/Samples-nodejs-helloworld.
  2. In your IDE, open the folder you recently downloaded or cloned from GitHub, then open hello_world.js.
  3. Configure the username, password, IP address, and port for your instance (see InterSystems IRIS Connection Information) using the variable declarations.
  4. In the Terminal of your IDE, perform the following steps:
    1. Install the InterSystems Native API for Node.js with the command npm install ––save intersystems-iris-native.
    2. Run the code with the command node hello_world.js.
  5. The Output pane displays the message
    Hello World! You have successfully connected to InterSystems IRIS.