07/05/2023
Installation and set up of typescript project. At first create a folder and open it from "VS code editor". Then open the terminal and
follow these commands:
1. tsc --init
2. npm init -y
3. npm i -D nodemon
4. npm i ts-node-dev
5. Then make src folder and go to tsconfig file. Search "rootDir" uncomment it and change it to ./src. According this also change "outDir" to .dist. Make sure that create a "dist" folder.
6. Go to package.json file and in the script write this command : "start": "ts-node-dev --respawn --transpile-only index.ts";
After do these you project will ready to run. The run comman is : npx ts-node-dev --respawn src/filename.ts