ReactJs Production API fetching Issue
I have built & deployed my ReactJs and NestJs on the same server on different ports. Reactjs is running in port 3000 and Backend API is running in port 3001. In the env file of the ReactJs, I have set…
I have built & deployed my ReactJs and NestJs on the same server on different ports. Reactjs is running in port 3000 and Backend API is running in port 3001. In the env file of the ReactJs, I have set…
This is how I setup a mongodb and a backend app using docker-compose. As I am running an old mongodb instance on port 27017, I have to use another port. So this is how I setup for port 27018. Mongodb…
I'm trying to fetch data from database and this is my prisma model: model instant_reports { id BigInt @id @default(autoincrement()) @db.UnsignedBigInt created_at DateTime? updated_at DateTime? deleted_at DateTime? timestamp BigInt? client_id BigInt? uniq_users BigInt? } So when i fetch data like…
Im using typeorm with nestjs and postgreSql and trying to load the entities via the datasource options object which gets passed in the useFactory async function inside the typeorm module like @Module({ imports: [TypeOrmModule.forRootAsync({ useFactory: () => (datasourceOptions) })], })…
I have a simple project built in: Node v16.14 Express Nextjs v13.2 I want to serve the output generated from Nextjs Static HTML Export in NestJS with Serve Static or in Express. The output from my Nextjs build doesn't include…
I need to insert the dates in dd/mm/yyyy format to match the other technologies in my application. I am using Nestjs, TypeOrm and Postgresql as database. I tried to use the @Transform decorator like in the documentation @Transform(({ value })…
I am trying to upload to an s3 bucket in next and have a couple of errors I am using the package: https://www.npmjs.com/package/@aws-sdk/client-s3 My Controller is: @Post('test-doc') @UseInterceptors(FileInterceptor('file')) async testDocument(@UploadedFile() file: Express.Multer.File) { return this.assetService.upload(file); } With my service: async…
I've read about 100 stack overflow posts, a few dozen reddit posts, and watched a handful of youtube videos. I cannot for the life of me get typeorm to generate a migration. I'm quite sure the problem is that the…
I have registered redis as cache manager in nestjs which is taking default value from env of 0 i.e no limit which is needed for some keys. But I want to pass custom ttl to another key using set(key, value,…
I have the problem where I need to modify a specific field of a object that is located in a array, but I would need to filter out the object within another array to get that specific object. For example,…