In this article, we will see how to build a Node.js, TypeScript Application and deploy it to server with Docker. Building a Production - Ready Node...
For further actions, you may consider blocking this person and/or reporting abuse
Good article.
One small typo.
Running tsc init on empty directory will throw error TS6053: File 'init.ts' not found.
update the command to tsc --init
Check out the following stackover flow link.
stackoverflow.com/questions/384330...
Thank you. i missed it...
Not sure I would run it in production with ts-node. Might add unnecessary overhead and impact performance. IMO, ts-node should be a devDependency.
ts-node is for development. we need to take a build using
tsc -p .
and deploy it to production.Ah yes. Just noticed you are running with pm2 in your Dockerfile.
Great article, I was looking for some TypeScript and Docker content and this is pretty helpful. :D
Thanks..Glad you like it