Integrate nodejs

Install shieldfy package

From your console navigate to your application folder and enter the command below:

npm install shieldfy-nodejs-client

Require shieldfy package

In your application main file : ex app.js add the following at the top of it.

const shieldfy= require('shieldfy-nodejs-client')
shieldfy.start({
    appKey:'<APP_KEY>',
    appSecret:'<APP_SECRET>',
});

Or in case of using .env file

In .env file add the following

shieldfyAppKey=<APP_KEY>
shieldfyAppSecret=<APP_SECRET>

In your application main file : ex app.js add the following at the top of it.

const shieldfy= require('shieldfy-nodejs-client')
shieldfy.start();