Error: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp()
<p>I have a firebase database linked up to two apps, one being an iOS app and another being a web app coded in node.js which is a basic algorithm that sets data to the database. When ever i am running the algorithm i am confronted with-</p>

<blockquote>
  <p><b>Error: No Firebase App '[DEFAULT]' has been created - call Firebase
  App.initializeApp().</b>
      at Error (native)
      at R (/Users/dd/Desktop/Code/NODE/node_modules/firebase/app-node.js:22:335)
      at a (/Users/dd/Desktop/Code/NODE/node_modules/firebase/app-node.js:20:68)
      at Object.c [as database] (/Users/dd/Desktop/Code/NODE/node_modules/firebase/app-node.js:21:447)
      at Object. (/Users/dd/Desktop/Code/NODE/Bot.js:24:25)
      at Module._compile (module.js:570:32)
      at Object.Module._extensions..js (module.js:579:10)
      at Module.load (module.js:487:32)
      at tryModuleLoad (module.js:446:12)
      at Function.Module._load (module.js:438:3)
      at Module.runMain (module.js:604:10)
      at run (bootstrap_node.js:394:7)
      at startup (bootstrap_node.js:149:9)
      at bootstrap_node.js:509:3 dd-mac:NODE dd$</p>
</blockquote>

<p>Could someone please help?</p>