@e3labs/sync-erp-connector

0.0.30 • Public • Published

sync-erp-connector

Sync-ing iSA with your ERP :D

Installation

yarn global add @e3labs/sync-erp-connector

or

npm install -g @e3labs/sync-erp-connector (not tested)

Usage

sync-erp-connector start

Starts the server

Options:

  • -p, --serverPort <port> Set a port of this application (default: 3000)
  • -k, --apiKey <key> Set your ApiKey
  • -e, --endpoint <url> Set the URL to process syncs
  • -u, --sqlUser <user-name> Set an Oracle user name
  • -s, --sqlPassword <password> Set an Oracle password
  • -t, --sqlPath <path> Set an Oracle path with TSNAME. Example: 0.0.0.0/dev
  • -l, --level <level> Set a logger level (see https://github.com/winstonjs/winston#logging-levels) (default: "verbose")
  • -f, --filePath <path> Load all the configuration from a file
  • -h, --help output usage information

Using -f, --filePath option, you have to use the full path of the file.

Ex:

sync-erp-connector start -f $PWD/.env

sync-erp-connector doctor

Checks if for a given filePath, the server can run without problems

Options:

sync-erp-connector failedEvents

Show the events that failed to sync

Options:

  • -f, --filePath <path> (required) Load all the configuration from a file
  • -r, --retry Retry to sync all entries in the failed list
  • -c, --clear Delete all entries in the failed list

Configuration File

The configuration file can be in any text format. A exemple of file are below

serverPort=number
apiKey=string
endpoint=string
sqlUser=string
sqlPassword=string
sqlPath=string
  • serverPort: number A port that this service will run
  • apiKey: string Your API Key
  • endpoint: string A HTML address that represents iSA Public API
  • sqlUser: string Oracle database user
  • sqlPassword: string Oracle database password
  • sqlPath: string Oracle database address (i.e: 0.0.0.0/prod)

Readme

Keywords

none

Package Sidebar

Install

npm i @e3labs/sync-erp-connector

Weekly Downloads

0

Version

0.0.30

License

ISC

Unpacked Size

8.55 MB

Total Files

13

Last publish

Collaborators

  • marvinmiguel
  • gleeerme
  • carlosnack
  • nickcarva
  • andregomesoliveira
  • blira
  • caio.lucas
  • cassion
  • recabp