Notes: NestJS and DynamoDB RestAPI

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 23

  • @CarlinGebyte
    @CarlinGebyte Месяц назад +1

    Thanks mate, U're great

  • @randeepyasintha140
    @randeepyasintha140 10 месяцев назад +1

    Learned a lot, thanks for the generous effort.

    • @computingpower
      @computingpower  10 месяцев назад

      I’m glad I could help 🙌🏼

    • @randeepyasintha140
      @randeepyasintha140 10 месяцев назад +1

      @@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.

  • @popzhixto
    @popzhixto 8 месяцев назад +1

    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?

    • @computingpower
      @computingpower  8 месяцев назад

      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 :)

  • @akroidofficial
    @akroidofficial 10 месяцев назад +1

    28:10 if you do not pass any value to the required the server crashes what is the solution for that?

    • @computingpower
      @computingpower  10 месяцев назад

      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

  • @patriciodilet9192
    @patriciodilet9192 4 месяца назад

    I cannot do POST, now I'm get 404 not found (using repo code), but y can call get and getall. Any suggestion? thanks

    • @computingpower
      @computingpower  4 месяца назад

      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

  • @tunaaaaaaaaaaaaaaaaaaaaaaaaa
    @tunaaaaaaaaaaaaaaaaaaaaaaaaa 7 месяцев назад +1

    how can i set up credentials for this?

    • @computingpower
      @computingpower  6 месяцев назад

      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

  • @akroidofficial
    @akroidofficial 10 месяцев назад +1

    bro where to give put keys to access dynamo. not available in documentation though

    • @computingpower
      @computingpower  10 месяцев назад

      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

    • @akroidofficial
      @akroidofficial 10 месяцев назад

      @@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.

  • @Rob-ux5wt
    @Rob-ux5wt 10 месяцев назад +1

    Do you have the repo for this project?

    • @computingpower
      @computingpower  10 месяцев назад +1

      Yes, here it is: github.com/Mpcsj-Computing/Notes-Project

    • @Rob-ux5wt
      @Rob-ux5wt 10 месяцев назад +1

      @@computingpower Thank you. This is a big help

  • @akroidofficial
    @akroidofficial 10 месяцев назад

    what if i want to check the array suppose for existing phone number or email and if it exist do not to the post

    • @computingpower
      @computingpower  10 месяцев назад

      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

  • @akroidofficial
    @akroidofficial 10 месяцев назад +1

    need help in 13:20

    • @computingpower
      @computingpower  10 месяцев назад

      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