Creating and deploying my MEAN app on Heroku has been a breeze so far. The front end is up and running smoothly on the provided website, but I'm stuck when it comes to compiling and building the server part of my app, especially since it's in TypeScript and follows a certain folder structure like this - myCodeStructure where the src folder is Angular CLI generated.
I've searched online and read through resources like https://devcenter.heroku.com/articles/mean-apps-restful-api, but they all seem to focus on simple server.js files with NPM start using node server.js.
Can anyone guide me through how to transpile my server code to JavaScript, build it properly, and then run it on Heroku?