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:
parent
ecba9a3377
commit
ebdc3d0109
22
README.md
22
README.md
@ -1,3 +1,25 @@
|
|||||||
# neptune-back
|
# 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
|
||||||
|
```
|
@ -11,7 +11,6 @@ import {
|
|||||||
UseGuards,
|
UseGuards,
|
||||||
// UseGuards,
|
// UseGuards,
|
||||||
} from "@nestjs/common";
|
} from "@nestjs/common";
|
||||||
// import { JwtGuard } from '../auth/guard';
|
|
||||||
import { ApiTags } from "@nestjs/swagger";
|
import { ApiTags } from "@nestjs/swagger";
|
||||||
import { User } from "@prisma/client";
|
import { User } from "@prisma/client";
|
||||||
import { JwtGuard } from "src/auth/guard";
|
import { JwtGuard } from "src/auth/guard";
|
||||||
|
@ -28,6 +28,7 @@ export class UserService {
|
|||||||
UserHasCrypto: {
|
UserHasCrypto: {
|
||||||
select: {
|
select: {
|
||||||
Crypto: true,
|
Crypto: true,
|
||||||
|
amount: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user