This small application demonstrates how you might set up a web server using Node.js and Express with RESTful routes to accept your modern-treasury-js form submissions without having to handle sensitive data.
This example makes use of the official node client library for the Modern Treasury API.
Note that it is not necessary to use the Express framework. In this example it is used to organize various API actions into distinct application routes, but one could just as easily implement these API actions within another application framework.
- Start the server
$ npm i
$ node app