Тёмный

Deploy NodeJS Express API as AWS Lambda Function in 15 minutes 

Dylan Albertazzi
Подписаться 8 тыс.
Просмотров 69 тыс.
50% 1

❗️Connecting your frontend to your backend is often the hardest concepts to grasp when you start developing web apps. Today we will deploy and NodeJS Express API using AWS Lambda that connects the front and back end in 15 minutes.
🧠 Knowing how to set up an API opens up a world of possibility when developing web applications
Amplify Docs: docs.amplify.aws/start/q/inte...
---
WHO AM I: I'm Dylan, a Cloud Engineer living in Bend, Oregon. I use my background in tech to make videos about technology that enables and grows businesses.
---
🌍 My website / blog -
dylanalbertazzi.com/

Наука

Опубликовано:

 

25 мар 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@deathdefier45
@deathdefier45 Год назад
Love you bro, this tutorial completed my understanding of amplify as a frame from a rest perspective. This was exactly what I've been looking for! Thanks
@dylanalbertazzi
@dylanalbertazzi Год назад
You're very welcome!
@hadriancicero3896
@hadriancicero3896 2 года назад
I really appreciate you taking the time to create this video. I watched it three times and tried to follow along, but I could not replicate the results.
@dylanalbertazzi
@dylanalbertazzi 2 года назад
I'm glad to help! Where are you getting stuck?
@hesoncontroler
@hesoncontroler Год назад
Because you need to install amplify globally
@JeffLevyForPresident
@JeffLevyForPresident 2 года назад
Ahem. So. I've been using AWS since 2010. For well over a year now, I've been using Azure Function Apps, specifically w/Node, to great success. Time warp to May 2022. I want to replicate my Azure successes in AWS w/Amplify. I find this video. I have the experience to be able to pick and choose what I want out of the video, but, there are some areas where I really need to pay attention, to learn the AWS concepts I already am familiar with in Azure. This is where the rapid pace of this video breaks down, leaving a confused, jumbled mess of "WHAT NOW?!?!". Dylan, great vids, man. I dig your content. It's good. But a little more production value, if you please. Your exuberance, and comfort with these tools, is leaving some of us in the dust. Slow down. Complete a thought, and a workflow process before going on to the next one. Having to pause, and rewind, and watch a 10 second section over and over again is killing me. Take the time to edit out mistakes. For example, at 13:30~ in this video, I see a Terminal widow with "?Press enter to continue". You never completed that step. What comes after that step is pretty darned important. Instead, you pop straight into your React stuffs. Thanks for the videos, really. It's making for a reasonably smooth transition for me, an experienced dev, but those who aren't familiar with these concepts are likely getting bogged down. I can see as much from other concepts.
@dylanalbertazzi
@dylanalbertazzi 2 года назад
Thanks for the input, I'll take it into consideration.
@atom_digital
@atom_digital Год назад
Such detailed explanation, good video quality, good thumbnail. I wonder why you haven't blown up. Keep up the grear work man. Thanks for the video
@powderriverfarrier
@powderriverfarrier 3 года назад
For Mac users save yourself from banging your head against a wall and go for the universal install of amplify and avoid the scanning plugin errors.
@codoof1
@codoof1 2 года назад
same for windows
@horhorou-8819
@horhorou-8819 3 года назад
Lots of knowledge gained! Thanks again for this video Dylan
@dylanalbertazzi
@dylanalbertazzi 3 года назад
I'm so glad you came away with something! Feel free to reach out if there's something else you want to learn.
@alexzajacek518
@alexzajacek518 2 года назад
Awsome video, this really simplified one of my projects. Question though, does the lambda functions inside our amplify project still have a size limit? For instance, I want to use Puppeteer, chromium, and a few other packages inside the lambda function but this would exceed the 50mb limit lambda has. If not or even if you can...what is a work around or another good architecturally sound option when running into situations like this?
@dylanalbertazzi
@dylanalbertazzi 2 года назад
Yep, all limits still apply. Amplify is just provisioning resources and the same ol lambda is under the hood. If you're running into size limits check out Lambda Layers. There's probably a prebuilt one for Puppeteer and chromium.
@assizpereira1374
@assizpereira1374 6 месяцев назад
quick question is it possble to run the amplify server locally while testing?
@baskey1987
@baskey1987 2 года назад
Hi Dylan, thanks for this tutorial. It was explained well and I was able to get up and running! I wanted to know the advantages of using Lamdba over using Express/NodeJS and Nodemon. To me, it seems like a complicated set-up that's not particularly easy to develop as you have to push your Lambda code each time and that's not to mention the issues with development/staging/production environments - although I'm yet to delve deeper into this.
@dylanalbertazzi
@dylanalbertazzi 2 года назад
Hey Dan, The big advantage of lambda is scalability. Once your code is in the cloud it can be called from anywhere at anytime (almost) infinitely. Express/NodeJS and Nodemon is great for developing locally and if your project is just for yourself is a simpler option to set up.
@khizerhassan8033
@khizerhassan8033 Год назад
Thanks! This is my first time doing serverless functions!
@dylanalbertazzi
@dylanalbertazzi Год назад
Glad I could help!
@manasaakhil6011
@manasaakhil6011 2 года назад
Awesome video Great 👍 Thanks Hi , Please make shorts or 10 min videos on aws major services Like a brushing up concepts or some sort This is first time I heard abt amplify and am already confident - thank you for tutorial
@dylanalbertazzi
@dylanalbertazzi 2 года назад
I'm glad it was helpful! I'll keep shorts in mind.
@mykhailshavkunov7345
@mykhailshavkunov7345 Год назад
it worked! thanks for sharing!
@KemaTheCreative
@KemaTheCreative 2 года назад
Hey do you think I can use this to make sure all my products are priced correctly on third party apps.
@dylanalbertazzi
@dylanalbertazzi 2 года назад
Possibly... it depends
@goatard3916
@goatard3916 Год назад
why is this like 15 fps
@jimmyrustle271
@jimmyrustle271 2 года назад
What diagram creator are you using in the beginning?
@dylanalbertazzi
@dylanalbertazzi 2 года назад
Lucid chart!
@hammadumar4878
@hammadumar4878 2 года назад
How to use aws-amplify with vanilla js ... without any frontend framework?
@dylanalbertazzi
@dylanalbertazzi 2 года назад
At that point I'd recommend serverless framework www.serverless.com/ Amplify really shines on the frontend.
@arifali1063
@arifali1063 3 года назад
Very nice video you are like the ben awad of aws
@dylanalbertazzi
@dylanalbertazzi 3 года назад
I wish
@adibtatriantama
@adibtatriantama 2 года назад
Cool! Thank you
@dylanalbertazzi
@dylanalbertazzi 2 года назад
You're welcome!
@souravsinha5330
@souravsinha5330 2 года назад
Perfect bro. Nice handson.
@dylanalbertazzi
@dylanalbertazzi 2 года назад
Thanks for watching!
@BecomeAWebDev
@BecomeAWebDev 2 года назад
great, more like this please
@dylanalbertazzi
@dylanalbertazzi 2 года назад
You got it!
@urdarkside1
@urdarkside1 2 года назад
Hey man, How long did it take you to learn NodeJS & Express APi?
@dylanalbertazzi
@dylanalbertazzi 2 года назад
It's a continual process and something I'm learning more about every day! However I learned Node and Express after I'd been coding for a few years already. With that prior experience it was a couple weeks until I had a base understanding. Keep putting practice in EVERY DAY and you'll be astounded at where you're at in a year.
@urdarkside1
@urdarkside1 2 года назад
@@dylanalbertazzi You're right, I have started my cloud journey. Currently learning Python.
@chantalespinosa5184
@chantalespinosa5184 2 года назад
Anyone else getting a post 400 error?
@Weagle1337
@Weagle1337 Год назад
Any disadvantage about handling all my Rest API with only one lamba function?
@dylanalbertazzi
@dylanalbertazzi Год назад
Maintainability as it grows is a drawback. Definitely not the architecture for anything more than a few functions.
@Weagle1337
@Weagle1337 Год назад
@@dylanalbertazzi Do you mind to share me some suggestions to build a scalable and maintaneable backend with pure amplify and serverless functions?
@kasraja5214
@kasraja5214 3 года назад
How we can connect mongodb in this app?
@jonrhaider
@jonrhaider 3 года назад
12:12 he mentions where you would add the code that connects to your db. So in the amplify/backend/function/myLamAPIFunc/src/app.js, (after you install mongoose driver or the mongodb native driver), you would import (require) it into your app, add your db string + credentials, and call whatever db resource/query from within the GET or POST block, and you could even post-process the data there before sending it back to the front end user in the res object.
@kasraja5214
@kasraja5214 3 года назад
@@jonrhaider It's solved. thanks :-)
@dylanalbertazzi
@dylanalbertazzi 3 года назад
Thanks for giving some feedback!
@MrTouqeerhameed
@MrTouqeerhameed 2 года назад
Awsome
@bobobobo-ki2fw
@bobobobo-ki2fw Год назад
subbed but can you also do it without amplify?
@dylanalbertazzi
@dylanalbertazzi Год назад
Absolutely, nowadays I would opt for Serverless Framework instead.
@cinderellarouge
@cinderellarouge Год назад
Hi,man.Is it free or you need subscription for a year?
@dylanalbertazzi
@dylanalbertazzi Год назад
AWS has a generous free tier that you shouldn't use up if you're playing around.
@alien-web
@alien-web Год назад
6:41 Baby sound?
@amorfolucifer2841
@amorfolucifer2841 2 месяца назад
You didnt prepare your stuff ...
@razakan4102
@razakan4102 2 года назад
Thanks for the easy to follow video. I am having an issue I cannot figure out. Whenever fetchWooHoos() gets called I get a function does not exist error. I have confirmed the names are the same and the function did get pushed and is showing on the aws console. Any thoughts?
@dylanalbertazzi
@dylanalbertazzi 2 года назад
Hey, It's tough to say without seeing the code, my first thought is that that your backend-config.json isn't set up properly
Далее
вот тебе и бэйбик👴🏻
01:00
Просмотров 323 тыс.
Deploy a SpringBoot API on AWS Lambda in 10 minutes
12:16
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Просмотров 1,8 млн
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Просмотров 126 тыс.