Identity
# Init NPM
npm init -y
# Install Dependencies
npm i typescript ts-node --save-dev
npm i @types/node --save
npm i express express-validator grpc dapr-client
npx tsc --init
# Create src directory
mkdir src
...
"scripts": {
"build": "rimraf ./dist && tsc",
"start": "npm run build && node dist/index.js",
"start:dev": "npm run build && nodemon --ext \".ts,.js\" --watch \"./src\" --exec \"ts-node ./src/index.ts\"",
"test": "echo \"Error: no test specified\" && exit 1"
},
...Last updated
Was this helpful?