Enable user crypto amount selection and update deployment docs

Added the ability to select user crypto amounts in the user service. Removed commented-out code in the offer controller for clarity. Updated the README with deployment and production instructions.
This commit is contained in:
Mathis H (Avnyr) 2024-11-22 11:06:50 +01:00
parent ecba9a3377
commit ebdc3d0109
Signed by: Mathis
GPG Key ID: DD9E0666A747D126
3 changed files with 24 additions and 2 deletions

View File

@ -1,3 +1,25 @@
# neptune-back
The project to validate my DWWM diploma on the back end.
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
```

View File

@ -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";

View File

@ -28,6 +28,7 @@ export class UserService {
UserHasCrypto: {
select: {
Crypto: true,
amount: true,
},
},
},