I am currently working within an Elixir / Phoenix project. I have some typescript code that I would like to run from within a GET function. What is the best practice for this?
To give more context, I need to dynamically create Apple pkpass files. The trouble is, creation of pkpass files is complicated, and there is no Elixir library to handle this creation, however there is a node.js package to handle this called https://github.com/walletpass/pass-js.
I have already built out a typescript class to handle the creation of the pkpass files, but I have no way to use this typescript class from my Phoenix project written in Elixir. How would one accomplish this?