Demonstrate how to communicate between Python and Node.js
- Run
python caller.pyto output the result fromrest.js - Run
node caller.jsto output the result fromrest.py
rest.pyandrest.jsare bare implementation of API callcallable.jsandcallable.pyare the abstraction files to call underlyingrest.pyandrest.jsrespectively, expecting function name and parametercaller.jsandcaller.pyare the test files to call underlyingcallable.pyandcallable.jsrespectively, dynamically with parameter
A more detailed explanation can be found on Medium !