Backend Development With Typescript.. Build a Web Server!

Typescript is great. It compiles to JavaScript with the Typescript command line tool: of which can be installed with npm. As follows:

npm i typescript -g

From there one can compile Typescript into JavaScript after declaring the build folder in the tscconfig.json file. This is as simple as crossing off the comments and writing “build” in the output folder inside the compilerOptions, called the “outDir”.

"outDir": "./build"