If you look into the package, you can see a property section named scripts. Now to run this index.ts file let’s add a script in our package.json file. Inside the index.ts file, we are creating a basic express server with only one GET route. This is the output directory for typescript compiler.Īnd add a property exclude at the same level and outside of the compilerOptions property "compilerOptions": ) Changed target property value to “ES2015” to specify ECMAScript version.You can leave most of the tsconfig.json properties as it is but we may need to modify some of its properties.
DOCKERIZE NODEJS POSTGRES APP HOW TO
This file represents compiler options for typescript that means this file tells typescript how to behave with the compiler.
DOCKERIZE NODEJS POSTGRES APP INSTALL
![dockerize nodejs postgres app dockerize nodejs postgres app](https://miro.medium.com/max/552/1*LcO8NPpW9b8lBlzll_-kOA.png)
![dockerize nodejs postgres app dockerize nodejs postgres app](https://kanlanc.com/content/images/size/w1600/2021/06/image-25.png)
![dockerize nodejs postgres app dockerize nodejs postgres app](https://miro.medium.com/max/1104/0*s9cWl2qFjXJUU7c8.png)
It is already popular and getting more popular day by day. On the other hand, TypeScript is an open-source language that builds on JavaScript. It is a minimal and battle-tested web framework. If you know about Node.js, you may also know the incredibly popular web framework Express.