/nodejs-vite

Primary LanguageTypeScript

Quick Setup Nodejs and Typescript Project

  • npm install --save-dev typescript

  • npx tsc --init

  • npm install express

  • npm install --save-dev @types/express @types/node

  • optimize devlopment

  • npm i concurrently @types/concurrently -D

Setup Link

@ https://blog.logrocket.com/how-to-set-up-node-typescript-express/

Using concurrently package

nodemon.json

{
  "watch": ["src"],
  "ext": "ts",
  "exec": "concurrently \"npx tsc --watch\" \"ts-node src/index.ts\""
}