Demonstrate how to communicate between Python and Node.js
- Run
python caller.py
to output the result fromrest.js
- Run
node caller.js
to output the result fromrest.py
rest.py
andrest.js
are bare implementation of API callcallable.js
andcallable.py
are the abstraction files to call underlyingrest.py
andrest.js
respectively, expecting function name and parametercaller.js
andcaller.py
are the test files to call underlyingcallable.py
andcallable.js
respectively, dynamically with parameter
A more detailed explanation can be found on Medium !