Deploy NodeJS Express API as AWS Lambda Function in 15 minutes

  Рет қаралды 69,436

Dylan Albertazzi

Dylan Albertazzi

3 жыл бұрын

❗️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/

Пікірлер: 57
@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
@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!
@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
@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.
@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
@assizpereira1374
@assizpereira1374 6 ай бұрын
quick question is it possble to run the amplify server locally while testing?
@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.
@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.
@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.
@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.
@arifali1063
@arifali1063 3 жыл бұрын
Very nice video you are like the ben awad of aws
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
I wish
@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
@jimmyrustle271
@jimmyrustle271 2 жыл бұрын
What diagram creator are you using in the beginning?
@dylanalbertazzi
@dylanalbertazzi 2 жыл бұрын
Lucid chart!
@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!
@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.
@adibtatriantama
@adibtatriantama 2 жыл бұрын
Cool! Thank you
@dylanalbertazzi
@dylanalbertazzi 2 жыл бұрын
You're welcome!
@goatard3916
@goatard3916 Жыл бұрын
why is this like 15 fps
@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?
@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!
@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?
@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.
@bobobobo-ki2fw
@bobobobo-ki2fw Жыл бұрын
subbed but can you also do it without amplify?
@dylanalbertazzi
@dylanalbertazzi Жыл бұрын
Absolutely, nowadays I would opt for Serverless Framework instead.
@MrTouqeerhameed
@MrTouqeerhameed 2 жыл бұрын
Awsome
@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
Your First AWS Lambda Function In VSCode - For Beginners - Updated
22:31
Dylan Albertazzi
Рет қаралды 19 М.
Build a Node.js API with Express + Serverless + AWS in 15 Minutes
16:30
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 134 МЛН
Little girl's dream of a giant teddy bear is about to come true #shorts
00:32
AWS Amplify Fullstack Project Setup (React, Node, Lambda, REST API)
35:59
Developing AWS Lambda Functions Locally in VS Code
20:22
Travis Media
Рет қаралды 117 М.
AWS API Gateway to Lambda Tutorial in Python | Build a REST API
11:17
Be A Better Dev
Рет қаралды 336 М.
Top 50+ AWS Services Explained in 10 Minutes
11:46
Fireship
Рет қаралды 1,5 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 2,4 МЛН
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 1,1 МЛН
НЕ БЕРУ APPLE VISION PRO!
0:37
ТЕСЛЕР
Рет қаралды 157 М.
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 5 МЛН