Commit Graph

25 Commits

Author SHA1 Message Date
M1000fr
6521da705b ref: move dto folder to Dto 2024-12-02 15:39:14 +01:00
M1000fr
f3c5673c75 feat: add swagger 2024-12-02 15:25:36 +01:00
M1000fr
b07b6082e4 refactor: Update Prisma schema to include createdAt field in User and RoomMessage models 2024-12-02 14:38:01 +01:00
M1000fr
3301b365f9 feat: Add Docker configuration files
Add .dockerignore, Dockerfile, and docker-compose.yml files to configure Docker for the project.
2024-12-02 14:37:58 +01:00
M1000fr
1988673f80 feat: add ConfigService with Env validator
- add Role decorator
2024-12-02 13:57:47 +01:00
M1000fr
a95ed47302 refactor: Update Prisma schema to include UserMessage, Class, Room, and RoomMessage models 2024-11-29 00:26:37 +01:00
M1000fr
61bd5cd862 feat: Add Discord and JWT authentication guards
- Added `DiscordAuthGuard` to handle Discord authentication
- Added `JwtAuthGuard` to handle JWT authentication

These guards are used in the `auth.controller.ts` and `user.controller.ts` files to protect routes that require authentication.
2024-11-28 16:11:16 +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
38105c3d43 Merge pull request 'feat: remove graphql due to complexity of stack' (#2) from remove/graphql into feature/auth
Reviewed-on: #2
2024-11-28 14:33:19 +00:00
M1000fr
e9cc7fef02 feat: remove graphql due to complexity of stack 2024-11-28 15:32:44 +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
782698788b Ref: file paths 2024-11-28 14:28:41 +01:00
1bc25f6eaa Merge pull request 'Integrate GraphQL' (#1) from feature/graphql into feature/auth
Reviewed-on: #1
2024-11-28 13:19:28 +00:00
M1000fr
bdd4561cba ref: add apache license in package.json 2024-11-26 20:31:54 +01:00
M1000fr
2cd37b30a7 ref: remove unused packages 2024-11-26 19:36:00 +01:00
M1000fr
abd6333da8 ref: only use yarn ! 2024-11-26 19:31:12 +01:00
M1000fr
b1aea1292e chore: Add Apache License to the repository 2024-11-26 18:32:42 +01:00
M1000fr
7dd819de7e chore: switch to Fastify & Mercurius with auth for subscription, queries and mutations 2024-11-25 23:27:37 +01:00
M1000fr
eb3f3a8de9 chore: fastify & mercurius without auth 2024-11-25 22:55:25 +01:00
M1000fr
3446f5bee1 chore: update nest-cli.json 2024-11-25 22:09:21 +01:00
M1000fr
cbf8c55804 chore: init graphql subscriptions 2024-11-25 15:59:50 +01:00
M1000fr
9b2c5b69d3 chore: learn graphql 2024-11-25 13:17:49 +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
570c81d7fd chore: first commit 2024-11-23 00:59:14 +01:00