An example showing how to access e-services exposed through PDND Interoperabilità via Node.js / TypesScript.
The accertamentoEsistenzaVita
e-service by ANPR is targeted.
A config.json
file must be present in the root folder in order to run the example. a configTemplate.json
file is provided as a guideline.
A recent version (tested on v20.10.0) of the Node.js runtime is expected to be already installed on your machine.
You shouldn't need to perform any particular operation, but who knows...
In the root folder, execute the following commands:
npm install
npx ts-node ./src/app.ts
Enjoy!
Were you in need of inspecting the program execution, and well accustomed to VSCode, all is provided for a basic debug.