REST-API-Node.js-Express-TypeScript-

1)yarn init 2)yarn add express winston zod config cors express mongoose pino pino-pretty dayjs bcrypt jsonwebtoken lodash nanoid 3)yarn add @types/body-parser @types/mongoose @types/config @types/cors @types/express @types/node @types/pino @types/bcrypt @types/jsonwebtoken @types/lodash @types/nanoid ts-node-dev typescript -D 4)npx tsc --init

FOR TEST

  1. yarn add supertest jest ts-jest @types/superttest -D 2)yarn ts-jest config:init
  2. create directory test on src

https://www.youtube.com/watch?v=BWUi6BS9T5Y&list=PL0iFifR5umclpRsRgWQtOtcgUffblcZgx&index=1