npm i -S nodemon ts-node typescript
Copy the nodemon.json configuration file
{
"restartable": "rs",
"ignore": [
".git",
"./**/*.spec.ts",
"node_modules"
],
"verbose": true,
"exec": "ts-node ./index.ts",
"watch": [
"."
],
"env": {
"NODE_ENV": "development"
},
"ext": "ts"
}
Update package.json to have this script:
"start": "nodemon --config nodemon.json",
Create an index.ts file and that'd be the entry point into your application