References:
https://blog.logrocket.com/how-to-set-up-node-typescript-express/
https://www.geeksforgeeks.org/use-ejs-as-template-engine-in-node-js/
Go to the project folder
cd typescript_html_template_engine_example
Create a minimal server with Express
npm i express dotenv
Install TypeScript
npm i -D typescript @types/express @types/node
Run the script
npx ts-node src/index.ts
Open the browser and go to http://localhost:3000
start http://localhost:3000