Skip to content

Setup and initialization

A basic understanding of Node.js is needed to follow this tutorial.

Set up a dataBridges account and app

Before we jump right into setting up an application with dataBridges, you’ll need to create a dataBridges account and app, if you don’t already have one:

  1. Sign up for a dataBridges account.

  2. Create a new app by selecting Apps and clicking Create New button.

  3. You can retrieve your app credentials from the App Keys tab.

Initialize Node app

Assuming you’ve installed Node.js on your machine, Now create a working directory to hold your application and init the NodeJS app.

Run command npm init, It will create a package.json file for your application in your working directory. This command prompts you for a number of things, including the name and version of your application and the name of the initial entry point file (by default this is index.js). For now, just accept the defaults.

//package.json
{
  "name": "hello-world-app",
  "version": "1.0.0",
  "description": "nodejs dataBridges app",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "MIT"
}