Commit Graph

9 Commits

Author SHA1 Message Date
M1000fr
8245f4ddfc ref: use nestjs-prisma for error handling
- Use GlobalFilters created by nestjs-prisma
- Rename user/users routes
2024-12-03 17:35:11 +01:00
M1000fr
a6d24cee9d ref: format with prettier 2024-12-02 16:55:44 +01:00
M1000fr
f3c5673c75 feat: add swagger 2024-12-02 15:25:36 +01:00
M1000fr
1988673f80 feat: add ConfigService with Env validator
- add Role decorator
2024-12-02 13:57:47 +01:00
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
M1000fr
fbf7272526 feat: add authentication using Discord oauth2 and JWT
Temporarily disabling GraphQL using Mercuris due to moving to Express (previously fastify)
2024-11-28 15:25:01 +01:00
M1000fr
eb3f3a8de9 chore: fastify & mercurius without auth 2024-11-25 22:55:25 +01:00
b49b7071e9 feat: add auth using jwt 2024-11-24 02:34:20 +01:00
06b130f4e8 chore: init nest 2024-11-23 01:37:22 +01:00