Go to file
M1000fr b40249fdfb feat: Add class-transformer and class-validator packages
- 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
2024-11-28 15:53:38 +01:00
prisma chore: learn graphql 2024-11-25 13:17:49 +01:00
src feat: Add class-transformer and class-validator packages 2024-11-28 15:53:38 +01:00
.env.example feat: add auth using jwt 2024-11-24 02:34:20 +01:00
.eslintrc.js chore: init nest 2024-11-23 01:37:22 +01:00
.gitignore chore: learn graphql 2024-11-25 13:17:49 +01:00
.prettierrc chore: init nest 2024-11-23 01:37:22 +01:00
LICENSE chore: Add Apache License to the repository 2024-11-26 18:32:42 +01:00
nest-cli.json chore: update nest-cli.json 2024-11-25 22:09:21 +01:00
package.json feat: Add class-transformer and class-validator packages 2024-11-28 15:53:38 +01:00
README.md chore: init nest 2024-11-23 01:37:22 +01:00
tsconfig.build.json chore: init nest 2024-11-23 01:37:22 +01:00
tsconfig.json chore: init nest 2024-11-23 01:37:22 +01:00
yarn.lock feat: Add class-transformer and class-validator packages 2024-11-28 15:53:38 +01:00

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