diff --git a/README.md b/README.md index 56b8d22..f61eef9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,25 @@ # neptune-back -The project to validate my DWWM diploma on the back end. \ No newline at end of file +The project to validate my DWWM diploma on the back end. + + +## Déploiement +- Configurer les variables d'environnements +- Mettre en ligne la base de donnée +> Si en production lancée avec le reste de l'application via docker-compose.yml +```shell +pnpm install +pnpm exec prisma generate +pnpm exec prisma migrate deploy +``` + +### En dèveloppement +```shell +pnpm start:dev +``` + +### En mode production +```shell +pnpm build +pnpm start:prod +``` \ No newline at end of file diff --git a/src/offer/offer.controller.ts b/src/offer/offer.controller.ts index 18994af..40b1b4b 100644 --- a/src/offer/offer.controller.ts +++ b/src/offer/offer.controller.ts @@ -11,7 +11,6 @@ import { UseGuards, // UseGuards, } from "@nestjs/common"; -// import { JwtGuard } from '../auth/guard'; import { ApiTags } from "@nestjs/swagger"; import { User } from "@prisma/client"; import { JwtGuard } from "src/auth/guard"; diff --git a/src/user/user.service.ts b/src/user/user.service.ts index 039e678..337575d 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -28,6 +28,7 @@ export class UserService { UserHasCrypto: { select: { Crypto: true, + amount: true, }, }, },