@@computingpower It would be fantastic if you could expand on this project to create a DynamoDB data modeling tutorial. If you could draw a simple ERD and demonstrate how to convert it to a document-based schema, it would be incredibly helpful for both sides because I haven't been able to find a good video on RU-vid that explains this topic using a real-world project.
Hello, thanks for the video, I have learned a lot! a query... instead of making that custom mapper function, could dynamodb's own unmarshall method be used?
Im glad you liked it! I haven’t found something like that directly on DynamoDB library. I’m aware that there are another library called “dynamoose”, which can create schemas and model mappings like Mongoose does for MongoDB, but for DynamoDB in this case. I decided to not use it in the video for the sake of simplicity, but I recommend you taking a look at that library for real world projects :)
Hello! Have you been able to check if you created the POST route correctly? When making the request, you will have to pass the controller route + endpoint route, like this @Controller('dogs') export class DogsController { @Post("something") create(): string { return 'This action adds a new dog'; } } then you will have to make a request like this POST to localhost:/dogs/something docs.nestjs.com/controllers
If you don’t pass the object Id as a path param , NestJS automatically returns 400, which is a Bad Request error code, indicating that something is wrong with the request
Hello! In this case, the application reads the AWS credentials directly from AWS Cli installed on the machine. If you install and set up AWS CLI, the app can read the credentials from there automatically. I have this video showing how to install AWS CLI on Linux machines ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1OqMQPx8Jno.html
@@computingpower still not clear bro like suppose I install AWS CLI in my EC2 then how to give the access of my dynamodb to my local project running on windows? Without .env.
Hello, in this case, I’m using the credentials from the underlying machine. For doing this on your computer, you must install AWS Cli on your machine like this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1OqMQPx8Jno.htmlsi=LDut6m1Fidg18hje
If you want to validate the object to be saved, you can add the proper validations in the DTO object. Check this out docs.nestjs.com/techniques/validation
Hello! If you are referring to the AWS credentials on the machine, I have another video showing how to install and Setup AWS CLI on a Linux machine with some user credentials here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1OqMQPx8Jno.htmlsi=AKzINjSYA5oIgoiA