AtulyamOne Tally Sync Agent - Windows
=====================================

No Node.js or other software needs to be installed. Tally must run on this
machine (or on the same network) with its XML/ODBC port enabled.

1. In Tally: Gateway of Tally > F1 (Help) > Settings > Connectivity.
   Enable the ODBC/XML port (default 9000). Keep Tally open while the agent runs.
2. In AtulyamOne: Settings > Tally Integration. Enable Tally Sync, enter the
   Tally company name exactly as shown in Tally, and generate a pairing token.
3. Extract this zip to a folder, for example C:\TallySyncAgent\
4. In that folder, copy config.example.json to config.json and fill in:
     platformBaseUrl  - your AtulyamOne URL, e.g. https://app.example.com
     agentToken       - the pairing token from step 2
     tallyUrl         - usually http://localhost:9000
5. Double-click tally-sync-agent.exe. A console window shows each sync cycle.
   Logs are written to the logs\ folder next to the .exe.

Windows SmartScreen may warn the first time because the file is not
code-signed. Click "More info" > "Run anyway".

Run as a Windows service (optional, no console window):
  Download nssm.exe from https://nssm.cc/ and, from an elevated prompt:
    nssm install "AtulyamOne Tally Sync Agent" "C:\TallySyncAgent\tally-sync-agent.exe"
    nssm set "AtulyamOne Tally Sync Agent" AppDirectory "C:\TallySyncAgent"
    nssm start "AtulyamOne Tally Sync Agent"
