Building a REST API in AWS with Node.js and Serverless Framework

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 30

  •  2 роки тому

    omg , it's simpler than i expected. Thank you

  • @chillingwithkids552
    @chillingwithkids552 2 роки тому

    simple and straight foward.. thanks a lot mate

  • @MuhammadAli-ic1uy
    @MuhammadAli-ic1uy 2 роки тому

    simple and clean code very helpful

  • @ankit403
    @ankit403 Рік тому

    very helpful nice 😍

  • @ehsank7046
    @ehsank7046 3 роки тому

    Great video! Thanks for showing the step by step process.

    • @princetonelliott9496
      @princetonelliott9496 3 роки тому

      you all probably dont give a shit but does anybody know of a method to log back into an Instagram account..?
      I somehow lost the account password. I would love any assistance you can give me

    • @ahmedkyree4240
      @ahmedkyree4240 3 роки тому

      @Princeton Elliott Instablaster =)

    • @princetonelliott9496
      @princetonelliott9496 3 роки тому

      @Ahmed Kyree thanks for your reply. I got to the site thru google and Im trying it out atm.
      Looks like it's gonna take quite some time so I will get back to you later with my results.

    • @princetonelliott9496
      @princetonelliott9496 3 роки тому

      @Ahmed Kyree It did the trick and I finally got access to my account again. I'm so happy!
      Thanks so much you saved my ass!

    • @ahmedkyree4240
      @ahmedkyree4240 3 роки тому

      @Princeton Elliott Happy to help :D

  • @mitlandir5761
    @mitlandir5761 3 роки тому

    A very nice tutorial!

  • @sunnymusicalstudio3465
    @sunnymusicalstudio3465 2 роки тому

    nicely explained

  • @jakubvala4345
    @jakubvala4345 3 роки тому +1

    maaaaaaaaaaaan that was really helpfull, please create more videos of these. Can you do the video even with authentication or more advanced stuff with aws. I'd love it

    • @BridgingCode
      @BridgingCode  3 роки тому +2

      Thanks man! Appreciate it. Sure. I'll try to put one up with auth via AWS API Gateway, maybe in the coming weeks. It'd be nice if you subscribe to this channel so you'll get notified when I uploaded it.

    • @jakubvala4345
      @jakubvala4345 3 роки тому

      @@BridgingCode Awesome! Subscribed already 👍

  • @shibnathroy106
    @shibnathroy106 3 роки тому

    Thank You Sir.

  • @markanddighe5762
    @markanddighe5762 2 роки тому

    how to create admin and user api plzz explain

  • @cheyezamlondo7933
    @cheyezamlondo7933 2 роки тому

    thank you for this tutorial it really helped me a lot. i have a question, so if i want to create my own serverless app do i have to go to the terminal and create it the way you did?

  • @abulsyed4851
    @abulsyed4851 3 роки тому

    hi dude, great vid! but for some reason when I attempt to make a post req I get "message": "Internal server error". Do you have any idea why I could be getting this response? This happened at timestamp 11:50 for me

  • @blakejolo5608
    @blakejolo5608 4 роки тому +1

    Great instructions! Helpful in my current task at work. Would it be possible to have different serverless files for different environments?

    • @BridgingCode
      @BridgingCode  4 роки тому

      Probably not. But your serverless.yml file can call on other yaml files depending on the value of a variable that you also set with serverless deploy command. For example, you want to deploy on your dev environment then run serverless deploy --stage dev, and from your serverless.yml file call ${opt:stage}. You can read more about this capability here www.serverless.com/framework/docs/providers/aws/guide/variables/

  • @jakubvala4345
    @jakubvala4345 3 роки тому

    I have a question though. If I wanna find a todo by a name. Can I define a query string in the url string and then get the todo from the databse using get method? Would it be like this: const params = { TableName: 'todos', Key: {name: 'event.queryStringParameters.name'} }; dyanomDb.get(params, (error, data) => {}) ? And how would th .yml file look like?

    • @BridgingCode
      @BridgingCode  3 роки тому

      Yes. That is correct. You can get query string values from the event parameter of your lambda function by accessing the queryStringParameters field. In your .yml file however, you might have to change the method from post to get as a convention.

  • @khoroshoigra8388
    @khoroshoigra8388 2 роки тому

    Sir good afternoon ask ko lang kung pwede po ba gamiting ung postgres as replace for dynamodb ?

    • @BridgingCode
      @BridgingCode  2 роки тому

      Do you mean in relation to the Serverless Framework? I don't think so. Serverless doesn't support that, just DynamoDB. You could just create a serverless app using Serverless, just not create a Postgres Database like how it created the DynamoDB tables here. You should have created the Postgres DB w/ all the tables you need beforehand and just specify the credentials in your app, securely of course.

    • @khoroshoigra8388
      @khoroshoigra8388 2 роки тому

      @@BridgingCode ahh ok po, thanks for the guide sir :)

  • @zenmaster24
    @zenmaster24 4 роки тому

    thanks for the video, but deletionpolicy doesnt mean what you think it does - its when you delete the stack, the resources are decoupled and remain - ie they are not deleted.
    you can deploy using serverless as many times as you want, and it should only update your lambda, not the dynamodb table.

    • @blakejolo5608
      @blakejolo5608 4 роки тому +2

      5:53 hmmm that's what he said though

    • @zenmaster24
      @zenmaster24 4 роки тому

      @@blakejolo5608 no he didnt - he says "so that our table doesnt get deleted every time we build and deploy with serverless" - check the closed caption.
      this implies *without* this setting, the table WILL get deleted everytime you build and deploy - thats not the case