b40249fdfb
- Added "@nestjs/mapped-types" package to package.json - Added "class-transformer" and "class-validator" packages to package.json - Imported ValidationPipe from "@nestjs/common" in main.ts and added it as a global pipe - Added validation decorators to CreateUserInput, SetUserPasswordInput, and UpdateUserInput classes - Created UserController with create, findAll, and removeUser methods - Updated UserEntity class with @Exclude decorator for password field - Updated UserModule to include UserController - Updated UserService to use class-transformer for mapping Prisma entities to UserEntity class - Updated UserService to return UserEntity instances instead of Prisma entities - Updated UserService to handle NotFoundException for setPassword and remove methods |
||
---|---|---|
prisma | ||
src | ||
.env.example | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc | ||
LICENSE | ||
nest-cli.json | ||
package.json | ||
README.md | ||
tsconfig.build.json | ||
tsconfig.json | ||
yarn.lock |
Project setup
$ yarn install
Compile and run the project
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod