You can install the Apache Unomi Node.js SDK using npm or yarn:
npm install --save unomi-node-sdk
yarn add unomi-node-sdk
You can connect to UnomiSdk using the connect
function:
import unomisdk from "unomi-node-sdk";
const unomisdk = unomisdk.connect({
url: "http://localhost:8181",
auth: {
username: "karaf",
password: "karaf"
},
elasticUrl: "http://localhost:9200"
});
export default unomisdk;