@e3labs/sync-erp-connector
v0.0.30
Published
Sync-ing iSA with your ERP :D
Downloads
31
Keywords
Readme
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:
-f, --filePath <path>
(required) Load all the configuration from a file-l, --level <level>
Set a logger level (see https://github.com/winstonjs/winston#logging-levels) (default: "verbose")
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 runapiKey: string
Your API Keyendpoint: string
A HTML address that represents iSA Public APIsqlUser: string
Oracle database usersqlPassword: string
Oracle database passwordsqlPath: string
Oracle database address (i.e: 0.0.0.0/prod)