Open Exchange App New Coding Talk: Using the IRIS Native API GitHub Template

Primary tabs

Hi Developers,

Please welcome the new video specially recorded by InterSystems Product Manager @Robert Kuszewski for the 3rd InterSystems Online Programming Contest on InterSystems IRIS Native API:

⏯ Using the IRIS Native API GitHub Template

 

What’s the contest about?

In the last year, InterSystems added and expanded Native APIs for Java, .NET, Python, and Node.js. The Native API provides high speed access to globals, the ability to instantiate and use ObjectScript objects, and fine-grained control over transactions.

In this contest, we would like to see what kinds of interesting applications can be built using the Native API.  

➡️ Native API Contest Template

To hope you get started with the contest, we’ve provided this template in GitHub to get you started. Just follow the instructions included there to clone the repository, build a docker container, and run your application.

We hope that you’ll enjoy the new APIs and have fun hacking!

Stay tuned! 👍🏼


Replies

When I run the docker up command from VSCode or if I try to run this from the command line I am getting the following error: docker.credentials.errors.InitializationError: docker-credential-gcloud not installed or not available in PATH

David

Hi David!

Did you use docker up, or docker-compose up? Like this:

docker-compose up -d --build

This works for me. I'm on Mac, and have Docker Desktop installed.

Adapting the sample code to connect to my own local IRIS, how do I define the location for intersystems-iris-native. I see this line of code const irisnative = require('intersystems-iris-native'). Do I need to make a copy of one of the iris.node files from the bin directory and add it it node-modules?

Also I am using node v13.8.0 - will iris1000.node work is do I need one specific to that version?