# Integrating with Tally

[Connect your virtual machine to Drivetrain](#connect-your-virtual-machine-to-drivetrain)\
&#x20;  [Step 1: Enable NodeJS](#step-1-enable-nodejs)\
&#x20;  [Step 2: Enable Tally as Server](#step-2-enable-tally-as-server)

[Configure NodeJS script](#configuring-nodejs-script)

### Connect your virtual machine to Drivetrain <a href="#connect-your-virtual-machine-to-drivetrain" id="connect-your-virtual-machine-to-drivetrain"></a>

#### Step 1: Enable NodeJS <a href="#step-1-enable-nodejs" id="step-1-enable-nodejs"></a>

1. Install NodeJs using [this](https://nodejs.org/dist/v20.10.0/node-v20.10.0-x64.msi) link.
2. Open **command prompt** in your virtual machine.
3. Download the Tally script provided to you by your Drivetrain customer success manager.

#### Step 2: Enable Tally as Server <a href="#step-2-enable-tally-as-server" id="step-2-enable-tally-as-server"></a>

1. Open Tally and press **F1 → Settings → Connectivity**.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2FbmVNppEOU2CUOCBz9llR%2FTally-1.png?alt=media&#x26;token=4176e6e0-1776-4853-a448-23ab21ddc812" alt=""><figcaption></figcaption></figure>

2. Select **Client/Server configuration**.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2FFnOrtfYVbcusRcPBwgqo%2FTally-2.png?alt=media&#x26;token=bbfa9560-7811-4591-8494-e99351475dd1" alt=""><figcaption></figcaption></figure>

3. Choose the configuration as **Both**.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2FzVsxQBTtT4SqgVo9NN2d%2FTally-3.png?alt=media&#x26;token=0299c04e-c1ef-4a32-8df7-8c6183cd2ab6" alt=""><figcaption></figcaption></figure>

4. **Restart** Tally to apply the changes.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2F80IDqCp1J5pwgZfcTJap%2FTally-4.png?alt=media&#x26;token=e795b155-4e80-4de0-a8ba-998a82b76bb7" alt=""><figcaption></figcaption></figure>

5. Now open your browser and go to **localhost:9000**. The below screen should appear.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2FEbKYlOFr3BaATSsU4k9t%2FTally-5.png?alt=media&#x26;token=708b48e0-53a1-415e-a012-7fce9dda1c42" alt=""><figcaption></figcaption></figure>

### Configuring NodeJs Script <a href="#configuring-nodejs-script" id="configuring-nodejs-script"></a>

1. Open the config.json file and change the following fields:
   1. schema
   2. fromdate
   3. todate

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2FO3GcIQPOL1FzuMFiFVOA%2FTally-6.png?alt=media&#x26;token=54d1fe8d-fda9-489d-b78b-6b90fb8e2054" alt=""><figcaption></figcaption></figure>

2. Add the Bigquery credentials to the json file as provided by your Drivetrain customer success manager.
3. **Execute** run.bat file.

{% hint style="info" %}
That’s it! Let your customer success manager know so they can get started!
{% endhint %}
