Тёмный

Build a Node.js API with Express + Serverless + AWS in 15 Minutes 

Michael Guay
Подписаться 19 тыс.
Просмотров 74 тыс.
50% 1

Github Repo: github.com/mguay22/express-se...
Serverless Docs: www.serverless.com/framework/...
Express Docs: expressjs.com/
Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/

Наука

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

 

20 июн 2020

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@mguay
@mguay 5 месяцев назад
Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/
@praveen_govind
@praveen_govind 2 года назад
One small suggestions, increasing vs code font size helps seeing code better.
@NateBabbel
@NateBabbel 2 года назад
Great video! After trying to follow a bunch of other tutorials this worked perfectly to migrate my existing nodejs express api to lambda!
@MasterFqF
@MasterFqF 2 года назад
A really well made and to-the-point tutorial, thank you!
@pradeepchoudhary381
@pradeepchoudhary381 3 года назад
Thank you Michael for this awesome tutorial.
@5h00G0fg
@5h00G0fg 3 года назад
Thank you for this Tutorial. Great Instructions!
@VenkateshMogili
@VenkateshMogili 2 года назад
Thank you very much Michael, finally it worked. Thank you so much for your efforts❤
@rock_0075
@rock_0075 3 года назад
Thanks for the video, just a quick question in .yml file, when defining Handler it will go to the handler file by default in the main folder, ut if the handler files are in src folder , how we can do the connection with it.
@GoodLife-Thailand
@GoodLife-Thailand 3 года назад
Thank you for sharing, it would be greater if the text in the editor is bigger. Very small for me ^^
@orhn
@orhn Год назад
This is gold. Awesome
@rolikaseventysix
@rolikaseventysix 3 года назад
Flawless! Thx!
@mitlandir5761
@mitlandir5761 2 года назад
Awesome tutorial :)
@user-sk9dx6ve7r
@user-sk9dx6ve7r Год назад
как же ты полезен, гига чад ипакт момент
@thebigbrickhouse5324
@thebigbrickhouse5324 Год назад
Very good tutorial.
@MinhYNguyen
@MinhYNguyen 2 года назад
It is easy than i expected
@warriorgeneral2735
@warriorgeneral2735 3 года назад
How do you connect to a rds postgres database?
@MiladCale
@MiladCale 3 года назад
Thanks for the video. But I wouldn't use Express in AWS Lambda. The reason is that it will cost me money in memory and time. I'd keep routing for AWS API Gateway instead. And I can still use middleware (auth for example) if needed.
@0x49BBF
@0x49BBF 2 года назад
Agree with this. Schema validation is great too
@napoleonbonaparte1260
@napoleonbonaparte1260 2 года назад
I use webpack
@wilsonemmanuel1352
@wilsonemmanuel1352 2 года назад
Great. Thanks
@nkaujhmoobentertainment1724
@nkaujhmoobentertainment1724 3 года назад
thank you very much
@niteshsingh9354
@niteshsingh9354 3 года назад
Good one but unfortunately I got an error router js not defined as object error encounter..
@bswill5077
@bswill5077 3 года назад
nice tutorial. maybe you can use smaller fonts so i can see much better ;)
@jean-aquilasboua9768
@jean-aquilasboua9768 Год назад
hello bro , i need help about nodejs deplymt on aws EC2. i d'ont know why my api down when i end ssh connection
@MinhYNguyen
@MinhYNguyen 2 года назад
That's coooool
@NickBortisaaggy18
@NickBortisaaggy18 3 года назад
Nice tutorial. But you may wanna zoom in. Barely can see anything clearly
@danilocecilia7831
@danilocecilia7831 3 года назад
or you just set the video player as fullscreen lol
@vishalborana5465
@vishalborana5465 2 года назад
when doing sls deploy i get the following error. Resource handler returned message: "Uploaded file must be a non-empty zip (Service: Lambda, Status Code: 400 Could you please help?
@locodev770
@locodev770 3 года назад
hey Michael, how does this work under the hood?, its one lambda? or one lambda by endpoint?, how this scales?. Great video!, thanks in advance.
@mguay
@mguay 3 года назад
Hey Loco - great questions. In this example, we used only one lambda. We are proxying each and every endpoint to a single lambda which is what /{proxy}+ in our severless.yml is doing. However, you could just as easily create a new lambda function for each endpoint, or even a new lambda for each HTTP method! You'd just have to configure it as such in the serverless.yml. Fortunately (and to answer your question on scaling) - you shouldn't have to do this. The beauty of AWS Lambda is that is scales based on the number of invocations. So if we only receive one GET request, there is only one instance of the lambda spawned. However, if there is a massive burst of traffic that comes towards our API (lambda handler), AWS will automatically scale up the number of instances running our lambda to match the traffic. This is the great thing about this architecture, it is quick and easy to set up - but it also scales very easily thanks to the inner workings of AWS Lambda. You can read more about lambda function scaling, and how to configure it here: docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html
@riazahmad5975
@riazahmad5975 Год назад
Hello sir , please make vidoe that how to insert csv data to dynamodb in serverless framework using lambad in nodejs
@c4346
@c4346 Год назад
I keep getting "Cannot GET /user" and 404 not found on every GET requests, even with your code... What do I do wrong ?
@dondonjohnathan795
@dondonjohnathan795 3 года назад
I tried to go through this tutorial but when I deployed it didn't give me any endpoints. Do you know what the issue could be?
@rolikaseventysix
@rolikaseventysix 3 года назад
Check the region. I think, it deployed to a region, which is not the one you are looking at in the console.
@karimelreweny8218
@karimelreweny8218 3 года назад
I followed the tutorial but I got this error : ApiGatewayResourceProxyVar - Resource's path part only allow a-zA-Z0-9._- and curly braces at the beginning and the end. (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException;
@mguay
@mguay 3 года назад
Hi Karim - thank you very much for posting your issue. I will look into it this weekend and get back to you. AWS may have changed their naming conventions for services, I'll have to take a look.
@mguay
@mguay 3 года назад
Karim, try changing the HTTP path from path: /{proxy+} to path: {proxy+} and redeploy to see if it helps resolve your issue.
@volodymyrpliuta3916
@volodymyrpliuta3916 3 года назад
Good tutorial but with some reason I am getting 404. then I just went you your repo and cloned your project and got the same result 404 when I look at Lambda logs don't see any errors
@97pixels
@97pixels 3 года назад
same here
@spherechords1790
@spherechords1790 3 года назад
very good content. but it's barely to see the screen.
@ChetankumarPandya
@ChetankumarPandya 3 года назад
Yes, can't think of viewing on mobile.
@kushagrakumar6892
@kushagrakumar6892 3 года назад
Hey, can I make this completely scalable?
@mguay
@mguay 3 года назад
Hi, I would only recommend this simpler architecture for smaller apps with a narrow focus. If you want to build bigger scaleable apps using Express, I recommend using a framework like Nest.js. I have several other videos about this subject.
@elClubdelas7Cifras
@elClubdelas7Cifras 4 месяца назад
done
@ba8e
@ba8e 2 года назад
11:29 You type so violently xD
@nataliapalweski2072
@nataliapalweski2072 3 года назад
serverless is not asking for AWS keys anymore its confusing.
@NITINAGAM
@NITINAGAM 3 года назад
Might be the credentials are already saved in your system.
@surajkarale8105
@surajkarale8105 3 года назад
serverless config credentials --provider aws --key --secret
@peziom-rn7sv
@peziom-rn7sv 2 месяца назад
too small font
@valicknjoyis6312
@valicknjoyis6312 2 года назад
Lol explain how install serverless: "npm install -g serverless"
@agriculturejobs4194
@agriculturejobs4194 5 месяцев назад
How you manage sensitive data like variables or secrets?
Далее
Serverless Framework with AWS Lambda Crash Course
1:29:11
Недооцененный котел в Симс 4
00:37
Deploy a Nest.js App With Serverless (Cheap & Easy)
12:22
How to Build a REST API with Node JS and Express
31:34
Monolith vs Microservices vs Serverless
23:05
Просмотров 76 тыс.
What Is Serverless?
8:30
Просмотров 177 тыс.
Why I often use AWS lambda and serverless architecture
10:09
GO without SERVERS? How to Deploy Go to Lambda
15:47
Просмотров 16 тыс.
AWS Lambda Express Server Setup!
21:33
Просмотров 5 тыс.
Rest API - Best Practices - Design
15:50
Просмотров 101 тыс.
iPhone, Galaxy или Pixel? 😎
0:16
Просмотров 373 тыс.
Собери ПК и Получи 10,000₽
1:00
Просмотров 2,7 млн