@@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 RUclips 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 :)
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! 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
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 ruclips.net/video/1OqMQPx8Jno/видео.htmlsi=LDut6m1Fidg18hje
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 ruclips.net/video/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.
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 ruclips.net/video/1OqMQPx8Jno/видео.htmlsi=AKzINjSYA5oIgoiA
Thanks mate, U're great
I’m glad you liked it 🙌🏼
Learned a lot, thanks for the generous effort.
I’m glad I could help 🙌🏼
@@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 RUclips 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 :)
28:10 if you do not pass any value to the required the server crashes what is the solution for that?
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
I cannot do POST, now I'm get 404 not found (using repo code), but y can call get and getall. Any suggestion? thanks
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
how can i set up credentials for this?
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 ruclips.net/video/1OqMQPx8Jno/видео.htmlsi=LDut6m1Fidg18hje
bro where to give put keys to access dynamo. not available in documentation though
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 ruclips.net/video/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.
Do you have the repo for this project?
Yes, here it is: github.com/Mpcsj-Computing/Notes-Project
@@computingpower Thank you. This is a big help
what if i want to check the array suppose for existing phone number or email and if it exist do not to the post
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
need help in 13:20
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 ruclips.net/video/1OqMQPx8Jno/видео.htmlsi=AKzINjSYA5oIgoiA