First of all, connection to backend using cloud connector is not supported by node-rfc library (yet...), only direct connection to backend is possible, so the RFC port of the backend must be exposed public to internet.
The SAP NetWeaver RFC SDK library is not public so you have to download by yourself.
Download the LINUX ON X86_64 64BIT
version from:
https://launchpad.support.sap.com/#/softwarecenter/template/products/_APP=00200682500000001943&_EVENT=DISPHIER&HEADER=Y&FUNCTIONBAR=N&EVENT=TREE&NE=NAVIGATE&ENR=01200314690100002214&V=MAINT
nwrfcsdk/lib
of the zip file into the folder sap/nwrfcsdk/lib
of the cloned repositorycf push
The app expose four http post api, these api internally use the node-rfc library:
The file test.http
of this repository contains examples for using the APIs
An hack in the standard cf nodejs buildpack, look at the manifest.yaml...
If you get the error reject connection request
during connect, check the ACL files in backend system:
P SOURCE=* DEST=*
More info: https://answers.sap.com/questions/12362804/eclipse-connection-error--reject-connection-reques.html