Тёмный

Serverless app using NodeJS, React and AWS (API Gateway, Lambda, DynamoDB, S3) 

Code Engine
Подписаться 10 тыс.
Просмотров 50 тыс.
50% 1

Watch me build a serverless app using NodeJS, React and AWS
(API Gateway, Lambda, DynamoDB, S3)
If you would like to support the Code Engine channel and get exclusive content, consider becoming a Patreon.
Thanks in advance!
Check it out here: / codeengine
#Serverless #NodeJs #AWS #React #BackEnd #FrontEnd #AWSLambda #S3 #APIGateway #Webapp

Наука

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

 

17 сен 2019

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 256   
@VishalRaoOnYouTube
@VishalRaoOnYouTube 4 года назад
Timestamps: 0:00 Introduction 1:01 Use Case Demo 3:02 Architectural Overview 6:31 Install Prerequisites 14:35 Front End Development with React/JSX 47:01 Debugging why remove(invoice_id) not working 49:45 Setting up the Bucket in Amazon S3 56:36 Building the Front End artifact to serve from S3 56:54 Configuring the IAM User 1:00:01 Upload Front End artifact to the S3 Bucket 1:02:30 Amazon API Gateway 1:08:30 Routing API into Amazon Lambda Function ==> None there, so 1:09:33 Creating the Amazon Lambda Function 1:11:44 Tying the Lambda Function to the API call "GET /" 1:13:33 Creating the "InvoiceTable" in Amazon DynamoDB 1:15:30 Inserting records into the "InvoiceTable" In Amazon DynamoDB 1:20:36 Modifying the Lambda Function to invoke the DynamoDB node.js SDK to retrieve the records in InvoiceTable 1:27:40 Grant IAM Role 'HelloRole' access to dynamodb:Scan on InvoiceTable 1:31:29 Change Front End to replace fake mock data with asynchronous calls to Amazon API Gateway backed by Lambda 1:35:27 Resolve CORS policy issue 1:37:56 Review
@CodeEngine
@CodeEngine 4 года назад
Awesome work! Thank you so much for this Vishal!
@fanggladys9986
@fanggladys9986 4 года назад
man you are so good at explaining and going through everything in exactly the right amount of details. Love it so much. please keep the good work coming.
@CodeEngine
@CodeEngine 4 года назад
Hi Fang Thank you very much! I am glad that you liked the video:) I appreciate your support. Best Siamak
@sneham8458
@sneham8458 Год назад
I'll be honest, this was the first youtube tutorial I followed up all the way to the end of the video! Straightforward, simple, effective. Thank you so much! ❤
@CodeEngine
@CodeEngine Год назад
You are welcome! I am glad you liked the video 😊
@denkling
@denkling 4 года назад
Sensational! I'm an absolut beginner with AWS and React, but it worked (without CSS). It took me 10 hours. I'm happy :)
@CodeEngine
@CodeEngine 4 года назад
Hi Karl, Nice job! That's awesome! I am glad the you enjoyed this tutorial:) Best Siamak
@robinsrivastava7772
@robinsrivastava7772 4 года назад
Thanks for this tutorial mate, perfect full stack tutorial to build up more things from here.
@CodeEngine
@CodeEngine 4 года назад
Hi Robin You are very welcome my friend! I am glad that you liked it. Best Siamak
@aasmasayyad
@aasmasayyad 2 года назад
Awesome Lecture...Five stars. So simple and crystal clear all the the explaination. Great work .
@CodeEngine
@CodeEngine 2 года назад
Thank you!! I am glad that you liked the video :) Best Siamak
@timsankara7054
@timsankara7054 3 года назад
This is a very good tutorial! He really understand the subject matter of AWS services and interactions. The explanations he gives are clear and it has got me going a long way towards competence. I'd definitely recommend it to others. Thanks!
@CodeEngine
@CodeEngine 3 года назад
Hi Timothy, Thank you so much! I appreciate your comment. I am glad that it was helpful. Best Siamak
@rajj8414
@rajj8414 4 года назад
Thank u i realy get the good solution for my issue after spending 1:3hrs in this video
@CodeEngine
@CodeEngine 4 года назад
Hi Raj, You are very welcome! I am glad that you liked the video:) Best Siamak
@BillBrutzman
@BillBrutzman 4 года назад
Super helpful. Tips, Tricks, and key insights. Bravo.
@CodeEngine
@CodeEngine 4 года назад
Hi William, Thank you! You are very welcome:) I am glad that you liked the video Best Siamak
@geoa9722
@geoa9722 3 года назад
Thanks, man! Very professional and clear explained. You definitely have a teaching talent
@CodeEngine
@CodeEngine 3 года назад
Hi George, You are very welcome! I am glad that you liked the video:) Best Siamak
@geoa9722
@geoa9722 3 года назад
@@CodeEngine are you going to do videos with more complicated routes to dynamodb ? And with http methods like post and updates as well? Its the hardest part
@CodeEngine
@CodeEngine 3 года назад
Hi George, Sure. I will add that to the list. Best Siamak
@griffinhealy200
@griffinhealy200 3 года назад
Thank you for this helpful tutorial, I followed it and it worked great!
@CodeEngine
@CodeEngine 3 года назад
Hi Griffin, You are very welcome! I am glad that you liked it :) Best Siamak
@umittas20000
@umittas20000 3 года назад
Thank you! I have no idea about React and Nodejs and watching your video from 3 days step by step, again and again :) 28:25 is important screen to add json variable to table!
@CodeEngine
@CodeEngine 3 года назад
You are very welcome! Glad that you liked the video. Best Siamak
@umittas20000
@umittas20000 3 года назад
@@CodeEngine yep Iike it but CORS error is killing me now. With amplify generated application I can't disable CORS :( I will figure out
@morningwood1787
@morningwood1787 4 года назад
Instant sub, awesome work and explanations!
@CodeEngine
@CodeEngine 4 года назад
Thank you very much! Glad you like the content:) Best Siamak
@VishalRaoOnYouTube
@VishalRaoOnYouTube 4 года назад
I really enjoyed this, thanks Siamak!
@CodeEngine
@CodeEngine 4 года назад
You are very welcome Vishal! I am so glad that you enjoyed this video :)
@vmramirez85
@vmramirez85 4 года назад
I'm mostly backend, and hate frontend as I don't consider myself "design" guy. I've struggled with npm, I'm only on 42:00, and it has taken me about 3 hours to get there. However I've found this example been explained very good, as I'm trying to build a site with this exact architecture. Thank you, very much!
@CodeEngine
@CodeEngine 4 года назад
Hi Victor, You are very welcome! I am glad that you liked the video :) Keep moving forward ! Best Siamak
@augmentos
@augmentos 4 года назад
Awesome thank you. Wish it was with no Framework and just VanillaJS but maybe the next one. Great thanx
@CodeEngine
@CodeEngine 4 года назад
You are welcome! Thanks for watching! I will add that to the list for future videos. Best Siamak
@TAO7TAO7
@TAO7TAO7 2 года назад
Really Useful
@CodeEngine
@CodeEngine 2 года назад
I am glad that you liked it:) Best Siamak
@pixel7038
@pixel7038 4 года назад
This is a pretty lit full-stack video. Good work
@CodeEngine
@CodeEngine 4 года назад
Thanks! Glad you liked it.🙂 Best Siamak
@pixel7038
@pixel7038 4 года назад
@Code Engine Quick question, I'm thinking of integrating a C++ ML algorithm onto NodeJS in the future, or webassembly, and was wondering if I need to code NodeJS within the same directory as ReactJS by a script or code NodeJS inside AWS. blog.christianperone.com/2018/10/pytorch-1-0-tracing-jit-and-libtorch-c-api-to-integrate-pytorch-into-nodejs/
@pixel7038
@pixel7038 4 года назад
I Didn’t notice any NodeJS code from ur local machine. Only react. I saw NodeJs Coded onto a lambda function
@CodeEngine
@CodeEngine 4 года назад
I can think of two possible solutions: 1-You can run the front end and back end on a single machine for testing and deploy it using Docker and ECS or Kubernetes for production. That way you can build your own customized image with all the libraries you need. 2- Run the NodeJS code using Lambda on AWS or EC2 (if you need more control) and serve your app from S3. This means that you need to build an API to connect the front end to the back end I hope this helps Best Siamak
@pixel7038
@pixel7038 4 года назад
@@CodeEngine Very informative! I'll test each case out. Much appreciated :D
@dineshsolanki1666
@dineshsolanki1666 3 года назад
It'd be nice to have an additional video on this application where we add security wherever necessary.
@CodeEngine
@CodeEngine 3 года назад
Hi Dinesh, Thanks for watching the video! Yeah I will have a separate video for all types of authentications. Stay tuned. Best Siamak
@jamilabbasOfficial
@jamilabbasOfficial 2 года назад
Thank you for this creating such a comprehensive and easy-to-understand tutorial!
@CodeEngine
@CodeEngine 2 года назад
You are very welcome! I am glad that you liked it Best Siamak
@alleyare1
@alleyare1 4 года назад
thank for this valuable tutorial, help alot while learning during #quarantie covid-19
@CodeEngine
@CodeEngine 4 года назад
You are very welcome! I am glad that it was helpful! Best Siamak
@VishalRaoOnYouTube
@VishalRaoOnYouTube 4 года назад
56:10 For about 6 minutes there, if someone knew of or accidentally uploaded files into your invoiceprocessing-aws bucket, you could have been liable for a upload/transfer fee! It might have been safer to add a 2nd policy statement to allow only your IAM user to upload to the bucket.
@CodeEngine
@CodeEngine 4 года назад
That is absolutely correct ! Thanks for mentioning that Vishal ! You can also use VPC endpoints for S3 access. Pre-signed URLs are also useful in this scenario. Best Siamak
@venil82
@venil82 4 года назад
thanks mate, this is useful!!, maybe you could ad timestamps for each section: react, lambda, database etc
@CodeEngine
@CodeEngine 4 года назад
You are very welcome! That is a good point. Will do my friend
@seancampbell5641
@seancampbell5641 4 года назад
@@CodeEngine Intro - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html App Overview - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html App Diagram - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html Dependencies - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html React - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html AWS S3 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html AWS API Gateway - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html AWS Lambda - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html AWS API Gateway Con't - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html AWS DynamoDB - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html AWS Connect Lambda & DynamoDB Intro - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html AWS Connect Lambda & DynamoDB Code - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html AWS IAM Role - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html AWS Lambda Test Success - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html AWS API Gateway Refresh - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html Connect Frontend with Serverless BackEnd - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html Wrap up - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html PS Thanks for the idea to use DynamoDB for session.
@VishalRaoOnYouTube
@VishalRaoOnYouTube 4 года назад
I added a comment above with timestamps.
@CodeEngine
@CodeEngine 4 года назад
Thanks Sean!
@krishankantsharma3655
@krishankantsharma3655 4 года назад
Thank you for making this video. Kindly make a serverless MERN app like this and teach us how to use SNS and SQS in them. please
@CodeEngine
@CodeEngine 4 года назад
Hi Krishan, You are very welcome! I will add that to the list. Best Siamak
@danieljing9319
@danieljing9319 4 года назад
really cool video
@CodeEngine
@CodeEngine 4 года назад
Thank you! I am glad that you liked it. Best Siamak
@luismunoz9126
@luismunoz9126 3 года назад
amazing, if this would be a full app in a udemy course i would buy it, good content, i will subscribe
@CodeEngine
@CodeEngine 3 года назад
Thank you Luis! I appreciate it. I am glad that you liked it :) Best Siamak
@vmramirez85
@vmramirez85 4 года назад
I see you reply almost every answer and I appreciate it. I'd suggest you add the "FAQs" in your description, so you don't reply same question several times. BTW, could you recommend any resources on CORS? I didn't understand what it is. Anyway, thanks for this tutorial, it is very complete I totally liked it. Very useful!
@CodeEngine
@CodeEngine 4 года назад
Hi Victor You are very welcome! Thank you for your suggestion. I am glad that you liked the video :) CORS is a security system in web browsers and basically prevents unauthorized API call. For example if you are building API for PayPal you don't want people to make API calls to your server. By using CORS your server only accepts traffic coming from an authorized front-end (PayPal website or App). I hope this helps. You can read more at : developer.mozilla.org/en-US/docs/Web/HTTP/CORS Best Siamak
@emmanuelmanana1527
@emmanuelmanana1527 2 года назад
Shouldnt you use splice to remove at item at an index in an array?
@jakewilson470
@jakewilson470 2 года назад
Hi code engine, quick question, when it comes to calling our apigateway, fetch can work for calling it, would axios work as well? I guess once the apigateway resource is deployed it is public for use correct ?
@CodeEngine
@CodeEngine 2 года назад
Hi Jake, Yes. You can use axios and after deployment your API is public and accessible unless you protect it with Lambda Authorizer, Resources Policy, or API Key. I hop this helps. Best Siamak
@rock_0075
@rock_0075 3 года назад
Thanks for the video, just a quick question if you can answer please. i have made a small project on VScode (react+nodejs+express+mysql), i am able to deploy mysql and react, but a bit confused about the API call& Nodejs, so i have got multiple api calls , do i need to create one Lambda function or for each APi call i need to make a seperate Lamda function. Thankyou.
@CodeEngine
@CodeEngine 3 года назад
You are very welcome! Create separate lambda functions and route your requests to them. I hope this helps Best Siamak
@rock_0075
@rock_0075 3 года назад
@@CodeEngine Thanks again :) .Indeed it is quite help full. Just two more thing if you can clarify please. Currently i have one Backend file(Server.js) having (NodeJS/Express/CookieParser and few other). let say i have 10 different API calls,1) when creating function i can just select Backend runtime environment(Nodejs) with dropdown menu but how can i install other libraries(Express/cookieparser...)-any pointers please 2) i understand i have to create 10 different API Gateway at AWS, if i understand correctly it means one server.js file i have currently locally, we be divided into 10 (index.js) files as when i create each lamda(and have to install all libraries separately for each function)
@CodeEngine
@CodeEngine 3 года назад
You are welcome! Dependencies can be added to the layer section in your lambda page. From the left menu select layer and upload your library then goto your lambda and click on the layer and select the library you want to add. Your local environment is a normal development environment with all the required libraries on your local computer. Best Siamak
@tuliagrawal148
@tuliagrawal148 4 года назад
Thank you for a helpfull tutorial. Can you please make video for beginnners React/Redux developer. 😊
@CodeEngine
@CodeEngine 4 года назад
You are welcome Tuli ! Of course. I will add it to the list Best Siamak
@tuliagrawal148
@tuliagrawal148 4 года назад
@@CodeEngine Thank you so much 😊
@stephenprosso
@stephenprosso 4 года назад
Yes I was able to find the resources in api gateway. My page returned null.
@KeshavMalani
@KeshavMalani 4 года назад
@Code Engine - thanks for the tutorial. Do you have repo for this? I'm running into errors on my end and want to compare to see what I messed up
@CodeEngine
@CodeEngine 4 года назад
You are welcome Keshav ! I am glad that you liked it. github.com/CodeEngineTechnology/Serverless_Invoice_App Best Siamak
@KeshavMalani
@KeshavMalani 4 года назад
@@CodeEngine thanks so much!!!
@JosephNgatia
@JosephNgatia 3 года назад
Hi, thanks for this tutorial. Kindly, can this backend architecture of hosting react frontend in S3 scale to an E-commerce handling millions users.
@CodeEngine
@CodeEngine 3 года назад
Hi Joseph You are very welcome! I am glad that you liked it. Yes you can serve your static website from S3 in conjunction with CloudFront (CDN) globally and scale to millions of users with low latency. For backend you can go serverless and let AWS handle the traffic or you can run a cluster for your docker containers so you can maintain high availability and reliability. I recommend running your backend on ECS or Kubernetes cluster. I hop this helps Best Siamak
@chensun4513
@chensun4513 4 года назад
Can I choose the java as runtime? But still JavaScript on front end?
@CodeEngine
@CodeEngine 4 года назад
Hi Chen, Yes of course! Best Siamak
@ronimodak8284
@ronimodak8284 4 года назад
Why the instruction in the command prompt has not been shown? any reason?
@CodeEngine
@CodeEngine 4 года назад
Hey Roni, No this was an editing error. The commands are : AWS configure AWS S3 sync build/ S3://yor_appfolder Best Siamak
@oludamilareolukotun9929
@oludamilareolukotun9929 3 года назад
it will be great if you can make a Java version of this tutorial.
@CodeEngine
@CodeEngine 3 года назад
Hi Oludamilare, Thank you for your comment! I will add that to the list Best Siamak
@jinkahari
@jinkahari 3 года назад
ty for making this. After moving this react code in s3 then how to integrate the api gateway to s3?
@CodeEngine
@CodeEngine 3 года назад
Hi Hari, You are welcome! API Gateway endpoint is accessible from S3 or any other server including your local computer. You can use API keys to make it secure. Best Siamak
@jinkahari
@jinkahari 3 года назад
You mean do I need to create one API for S3 and give the bucket details?
@CodeEngine
@CodeEngine 3 года назад
Please watch the video where I explain all the details. API Gateway endpoint will be accessible from S3 Best Siamak
@prasadlimbhore9761
@prasadlimbhore9761 2 года назад
When I am clicking on OK or any other button, all list is getting disappeared. Can you please help?
@tradexy12
@tradexy12 4 года назад
Code Engine. Looks great well done. Thumbs up and subscribed. Would you be able to share the repo? Many thanks
@CodeEngine
@CodeEngine 4 года назад
Thanks John! I appreciate your support! Sure. I will upload it today and send you a GitHub link in the comment section. Best Siamak
@CodeEngine
@CodeEngine 4 года назад
github.com/CodeEngineTechnology/Serverless_Invoice_App
@kakashiluver95
@kakashiluver95 3 года назад
Hi I am getting an error I cannot resolve, when testing the lambda function I keep getting response "value1" I have tried copying pasting your code in and still cannot resolve. any troubleshooting tips would be very helpful
@CodeEngine
@CodeEngine 3 года назад
Hi, It seems like you are returning the test data set. (You can find that in the test section of your lambda function). Check the return variables in your function and also use console.log(your-variable-name) to validate your function variables. Best Siamak
@jinkahari
@jinkahari 3 года назад
How to deploy the js react code if we write the scripts using terraform. How devops team will do this.
@CodeEngine
@CodeEngine 3 года назад
Hi Hari, DevOps engineers use CD pipelines for deployments. Create a repository for your app and then create a ECS cluster (you can follow my Docker video) or Beanstalk or EC2 environment using Terraform. At the end create a pipeline using Terraform that deploys to docker, EC2 or Beanstalk. (follow my CI/CD video). I hope this helps Best Siamak
@amitpadgaonkar8830
@amitpadgaonkar8830 Год назад
How do you call the API gateway protected by IAM Authorization (User with Access Key, Secret key)? I know about AWS V4 Signature, however do not want Access key, Secret Key exposed
@bestmoviestrailerbestmovie8437
@bestmoviestrailerbestmovie8437 4 года назад
Sir where I live here in collger 11 th class we are only learning defination of different pointing device software and printers. While in other countries they learn languages of computer pyrhan jawa and programming in computer subject. I don't know what to do
@CodeEngine
@CodeEngine 4 года назад
Hello there, I understand that you might not receive the best programming training in your country but I have to say in general school/ University won't give you all you need for a real job or project. There is only one person that can help you become a good software engineer and that person is you. Watch online courses and practice every day. Thanks for watching! Good luck
@bestmoviestrailerbestmovie8437
@bestmoviestrailerbestmovie8437 4 года назад
@@CodeEngine thank you for replying
@paulfleischer-djoleto4429
@paulfleischer-djoleto4429 3 года назад
A good video. Well explained. But the only problem is the faulty video portions. The author should have re-taken the faulty portions to make it easy to follow. Especially for beginners to AWS. The missing portions are necessary. Sir, kindly have it corrected. If not everything is fine.
@CodeEngine
@CodeEngine 3 года назад
Hi Paul, Thank you for your comment! I am glad that you liked the video. Sorry about the editing error. The commands are : AWS configure AWS S3 sync build/ S3://yor_appfolder Best Siamak
@paulfleischer-djoleto4429
@paulfleischer-djoleto4429 3 года назад
@@CodeEngine Thanks for the reply. After watching and coding along to the end, I want to say that YOU ARE GREAT. More grease to your elbow.
@CodeEngine
@CodeEngine 3 года назад
You are very welcome! I appreciate your comment:) Best Siamak
@tdthree
@tdthree 4 года назад
Can S3 buckets serve dynamic websites? I have a reactjs app that uses redux, nodejs, aws lambda, mongodb. Can this tutorial still apply for my site?
@CodeEngine
@CodeEngine 4 года назад
Hi Tyrone, Great question! S3 is an object storage platform so you can't have block level operations on it (like running a database). You can migrate your backend app and database server to EC2 (rehost) or you can use s3 for your frontend and use only lambda (NodeJS) for your backend (serverless) and migrate your MongoDB to DynamoDB (rearchitect). If you need to have an EC2 (app server) you can use EC2 and Cloudfront to serve dynamic content. Cloudfront can send the static traffic to S3. If your app is popular consider dockerizing your app and serve it using ECS or Kubernetes. I hope this helps Best Siamak
@tdthree
@tdthree 4 года назад
Code Engine Do you think serverless is the future? Leaning towards going serverless (all my backend endpoints as lambda functions) because I think it fits my app, as the endpoints are not too complex and fit within Lambda’s limitations. If I do go serverless it feels like I am on a new wave of tech that hasn’t fully taken off yet, but might in the future!
@CodeEngine
@CodeEngine 4 года назад
100%. Serverless is the future. there are two reasons : 1- Cost saving 2-Administration Best Siamak
@techwithlc
@techwithlc 4 года назад
i can't use npm start why? After follow the rule still can't work
@CodeEngine
@CodeEngine 4 года назад
Hello, Did you install NodeJS ? You can download it from : nodejs.org/en/ I hope this helps Best Siamak
@pauliliatto8200
@pauliliatto8200 4 года назад
Still CORS error even after runnning what you did. Any idea?
@CodeEngine
@CodeEngine 4 года назад
Hi Pauli, Did you deploy the changes? Thanks for watching the video! Best Siamak
@komalbakshi8446
@komalbakshi8446 2 года назад
Hey does this tutorial use cloudformation?
@CodeEngine
@CodeEngine 2 года назад
Hey Komal, No. This tutorial is focused on serverless. Best Siamak
@DontFretBrett
@DontFretBrett 2 года назад
You had a white box blocking the all the instruction needed for uploading your code to your S3 bucket. I get if it’s for security but makes it hard to follow when we can’t see.
@CodeEngine
@CodeEngine 2 года назад
Hi, Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Or simply upload the files to S3 through AWS console. Please let me know if you have any questions. Best Siamak
@waiyanleung5199
@waiyanleung5199 2 года назад
Only localhost is connected with the API. If I opened up the S3 bucket URL, data there is not connected with the API. How can I make the deployed frontend in S3 connected with API as well?
@CodeEngine
@CodeEngine 2 года назад
Hi, The S3 url (website) is publically accessible. All you need to do is call the correct url. Best Siamak
@waiyanleung5199
@waiyanleung5199 2 года назад
@@CodeEngine Hi, S3 bucket can host static websites only. But your app is dynamic. So the S3 URL can't show data from db. May I know any reason for using S3?
@andyjunior7515
@andyjunior7515 Год назад
Very good content but I will really like to know what the invoice I all about
@rickyspringer4478
@rickyspringer4478 3 года назад
This was working great until I ran the build command. Whenever I view the Index.html locally or in S3 its coming up with a blank white page. Any help would be appreciated. Love the guides!
@CodeEngine
@CodeEngine 3 года назад
Hi Ricky, Thanks for watching the video:) Please double check your imports and paths. What command did you run? Best Siamak
@rickyspringer4478
@rickyspringer4478 3 года назад
@@CodeEngine I did end up finding the solution and I'm not sure why it wasn't mentioned or why it works but in the package.json file I was required to add "homepage": ".", Love your videos and thanks for having them
@CodeEngine
@CodeEngine 3 года назад
Great news! I am glad that you liked the video:)
@vijayalakshmis2418
@vijayalakshmis2418 3 года назад
58:40 Not able to view the screen properly and command. Any one faced this issue?
@CodeEngine
@CodeEngine 3 года назад
Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Please let me know if you have any questions. Best Siamak
@bhaswarkashyap3069
@bhaswarkashyap3069 3 года назад
Hi Siamak, unable run AWS configure command. it says command not found, please help
@CodeEngine
@CodeEngine 3 года назад
Hi Bhaswar, It seems like that you need to install AWS cli. aws.amazon.com/cli/ Best Siamak
@AlysonVeras
@AlysonVeras 2 года назад
@@CodeEngine thanks
@weiren6893
@weiren6893 3 года назад
When I put all the code in the lambda function, and test. I still see Response : "value1". Anyone has the same issue?
@griffinhealy200
@griffinhealy200 3 года назад
You need to press the 'Deploy' button above the function code I believe.
@hollyjo161821
@hollyjo161821 3 года назад
1:27:02 - "data.items" === "data.Items in my else callback() worked for me
@CodeEngine
@CodeEngine 3 года назад
Great! Thanks Holly ! Best Siamak
@hollyjo161821
@hollyjo161821 3 года назад
@@CodeEngine thank you!! I loved this project! github.com/hollyjrobertson/AWSReactServerless
@CodeEngine
@CodeEngine 3 года назад
You are very welcome! Thank you for the credit:) Best Siamak
@hollyjo161821
@hollyjo161821 3 года назад
@@CodeEngine do you have any recommended videos for learning Lambda / Node.js?
@CodeEngine
@CodeEngine 3 года назад
Hi Holly, Did you watch my OCR app video? That one uses NodeJS, Python and Lambda. Best Siamak
@shawnjohnson3433
@shawnjohnson3433 Год назад
Seems there is a white block blocking the video when you were connection the s3 bucket. Around the 56:00 mark.
@CodeEngine
@CodeEngine Год назад
Please review the previous comments. I have posted the commands. The box will disappear after 1 min
@shawnjohnson3433
@shawnjohnson3433 Год назад
@@CodeEngine Thank you for the speedy response! This is a great video! I think I am confused where I put the commands?
@CodeEngine
@CodeEngine Год назад
You are welcome. You just need to open your terminal and run those commands. You can follow the process in the video
@tatuka666
@tatuka666 4 года назад
You have a huge white rectangle that hides half the screen at the 58 minute. What's up with that? Commands hidden: Install AWS CLI on your machine > aws configure (add the IAM User's Access key ID & Hidden key) > aws s3 sync build s3://your_amazon_s3_app_name
@CodeEngine
@CodeEngine 4 года назад
Hi Daniel, Thanks for posting the commands. Yes , unfortunately that is an editing issue. Thanks for watching the video! Hope you liked it Best Siamak
@tatuka666
@tatuka666 4 года назад
@@CodeEngine Loved your tutorial, you have a new happy subscriber :)
@CodeEngine
@CodeEngine 4 года назад
Glad to hear that my friend! 🙏 Best Siamak
@RameshPatel-tj4df
@RameshPatel-tj4df 4 года назад
@@CodeEngine Just wondering what was the command you ran - thx
@CodeEngine
@CodeEngine 4 года назад
Hi Ramesh Please install AWS CLI the run this command in your terminal: AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder I hope this helps Best Siamak
@noone7773
@noone7773 2 года назад
I am completely a beginner here in aws field. Please tell me that for website deployment, which stack of tools are preferable and trending these days?
@CodeEngine
@CodeEngine 2 года назад
Thanks for your comment. There are so many different ways available for deploying a website to AWS and it really depends on the project requirements, budget, availability, traffic pattern, and other requirements. I suggest that you start studying for your Solutions Architect - Associate certification. I hope this helps Best Siamak
@noone7773
@noone7773 2 года назад
@@CodeEngine okay thank you so much. It helped!
@alakdam3970
@alakdam3970 4 года назад
Hey man! Thanks for the awesome tutorial. I did not see anything that you have done after 57:00 in your terminal.
@CodeEngine
@CodeEngine 4 года назад
Hi Alak, You are very welcome my friend! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Please let me know if you have any questions. Best Siamak
@alakdam3970
@alakdam3970 4 года назад
@@CodeEngine , Is there a possibility to get video 56:54 till 1:02:30? Because those parts are hero contents of your video. For example: I did not see the user policy to use S3 bucket, lambda, API gateway. Then, after Run `AWS configure`, which AWS' access key and secret key, I should use. And finally `AWS S3 sync build/ S3://my_appfolder`, how do I connect my `my_appfolder`? is it the whole react app folder or just build folder.
@CodeEngine
@CodeEngine 4 года назад
Hey Alak, Unfortunately updating the video is not an option since this will require a complete update however I can walk you through all the steps. Your "build" folder is your app and we are trying to copy the content of that folder to your S3 bucket in this part of the video. let's say your S3 bucket name is "your_s3_bucket_name" After these steps you will see how I access the page but for now please follow these steps and watch the reset of the video: Step1- Create an IAM user Step2- Then click on the user and search for 4 AWS policies that you need to attach to this user : API Gateway, DynamoDB , Lambda and S3 Or you can give this user Administrator access but it is not recommended from security perspective. Step3- Then in the same page create a new access key and download it Step4-go to terminal on your computer and type this command : aws configure Step5-This command will ask you to key in your secret key and secret access key and region (This will give your computer the ability to push the code to the S3 bucket) Step6- Then while you are in the app folder in your computer, run the following command to upload the files to S3 : AWS S3 sync build/ S3://your_s3_bucket_name (We are just uploading the content of build folder to S3) Step7-Since you have one set of aws keys on your machine you don't need to use a profile. Remember that all these commands are just for uploading your build folder to S3. If you can't make this work, you can goto S3 bucket and click on upload and select all the files inside the build folder and upload them to the bucket. Please let me know how it goes. Best Siamak
@alakdam3970
@alakdam3970 4 года назад
@@CodeEngine Thanks mate. It works. Keep up the good work. Will you open a course in Udemy about AWS? I did not find any good courses over there about AWS. Beginner level like me needs a mentor like you.
@CodeEngine
@CodeEngine 4 года назад
You are very welcome! I have been thinking about. Thanks for bringing this to my attention. Best Siamak
@mrunmayipatil6920
@mrunmayipatil6920 3 года назад
can plz share this sync command for copy file to s3
@CodeEngine
@CodeEngine 3 года назад
Hi Mrunmayi, Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Please let me know if you have any questions. Best Siamak
@leonardocollares
@leonardocollares 3 года назад
Great tutorial! Unfortunately, most of your explanation on AWS was covered by a white banner and I couldn't follow up.
@CodeEngine
@CodeEngine 3 года назад
Hi Leonardo, Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Please let me know if you have any questions. Best Siamak
@vsnyk
@vsnyk 3 года назад
@@CodeEngine AWS command not found. any idea?
@CodeEngine
@CodeEngine 3 года назад
You need to install AWS cli on your computer. You also have the option of uploading the files from AWS S3 console. I hope this helps. Best Siamak
@william3588
@william3588 4 года назад
awesome! how about authentication?
@CodeEngine
@CodeEngine 4 года назад
Thank you William! I am glad that you enjoyed the video:) I will add authentication to the future videos. Best Siamak
@william3588
@william3588 4 года назад
@@CodeEngine awesome!
@stephenled3311
@stephenled3311 4 года назад
minute 57 - 1:01 there is a giant white block on the screen and we cant see the command you are running in CLI. AM I the only one who sees this?
@CodeEngine
@CodeEngine 4 года назад
Hi Stephen, Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Please let me know if you have any questions. Best Siamak
@stephenprosso
@stephenprosso 4 года назад
I found it in the documentation and was able to deploy. Thanks! I’m almost done with the video...
@CodeEngine
@CodeEngine 4 года назад
Great! You are very welcome!
@gaganchahal5299
@gaganchahal5299 3 года назад
@@stephenprosso Can you tell me from where you saw the documentation?
@aiya2323
@aiya2323 3 года назад
Great tutorial!! will you be able to link the repo ?
@CodeEngine
@CodeEngine 3 года назад
Thank you! Here is the link to repo github.com/CodeEngineTechnology Best Siamak
@aiya2323
@aiya2323 3 года назад
@@CodeEngine Thank you!! I really enjoyed this, great expiation!!
@CodeEngine
@CodeEngine 3 года назад
You are very welcome! I am glad that you liked it:) Best Siamak
@dathuynhdinhman
@dathuynhdinhman 3 года назад
Hi there, I try to change an amount in DynamoDB, but the number in the table is not change. I don't why. Can you explain for this problem?
@CodeEngine
@CodeEngine 3 года назад
Hello, It's difficult for me to troubleshoot the code without looking at it but I recommend that you add a few log messages to your code and validate the numbers. Best Siamak
@dathuynhdinhman
@dathuynhdinhman 3 года назад
@@CodeEngine Hi there, I have a problem with this one "2021-03-02T20:14:29.135Z c84d9dd7-2ac2-425b-a9ec-fed836c56809 Task timed out after 3.00 seconds"
@dathuynhdinhman
@dathuynhdinhman 3 года назад
@@CodeEngine I try to change the number $18000 to $9000 in my dynamoDB, but the table in front end not change. It is still the same $18000. It doesn't change to $9000. When I test the lambda function, it change from $18000 to $9000. How do you copy endpoint to .env file?
@CodeEngine
@CodeEngine 3 года назад
Did you update the state? You might be still reading the old value
@dathuynhdinhman
@dathuynhdinhman 3 года назад
@@CodeEngine Hi there, What is the state? Can you explain more about state, please? Thanks
@luisbrazilva
@luisbrazilva 8 месяцев назад
YOu have a white area blocking the view from your screen. I can't see some of what youare typing
@matt85598
@matt85598 4 года назад
Hi , Siamak jan, Thank you for this great Course Tutorial, But Unfortunately I couldn't solve the below Error to open the Application : Failed to compile. ./src/index.js Module not found: Can't resolve 'bootstrap/dist/css/bootstrp.css' in 'C:\InvoiceApp\app\src' Please Guide me to solve this Problem - Thank you so Much --- Regards, Mehdi
@CodeEngine
@CodeEngine 4 года назад
Hi Mehdi jan, You are welcome! Thanks for watching the video! Looks like you need to install bootstrap for your project. Please go to terminal and run this command while you are in the project's folder : npm install react-bootstrap bootstrap This will fix the problem. Let me know how it goes. Best Siamak
@matt85598
@matt85598 4 года назад
@@CodeEngine , I installed the cmd , Great ! It works now ! Thank you so much again for your Prompt Reply, also My Application Feature doesn't looks Multie-colored Invoice table like yours ?! ( just black & White ) May I know How to do that ? Best Regards
@CodeEngine
@CodeEngine 4 года назад
Great! You are welcome! Did you install reactstrap? reactstrap.github.io/ Please compare your code with my repo to see if you can find the issue. github.com/CodeEngineTechnology/Serverless_Invoice_App/blob/master/App.js I hope this helps Best Siamak
@matt85598
@matt85598 4 года назад
@@CodeEngine Siamak jan, I did Install / compare everything but still the Application is B&W Color , and also when I click on each Button then Deletes the Row ?! Best-Mehdi
@shadmanmartinpiyal4057
@shadmanmartinpiyal4057 3 года назад
Why there is a white block in the middle of the screen? can't see anything properly
@CodeEngine
@CodeEngine 3 года назад
Hi Shadman, Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Please let me know if you have any questions. Best Siamak
@gaganchahal5299
@gaganchahal5299 3 года назад
@@CodeEngine Can you please write the exact commands that you use, its not working for me.
@CodeEngine
@CodeEngine 3 года назад
These are the exact commands just update the folder name
@gaganchahal5299
@gaganchahal5299 3 года назад
@@CodeEngine It is giving me this error: usage: aws s3 sync or or Error: Invalid argument type I tried with the command $ aws s3 sync build/ S3://invoices
@CodeEngine
@CodeEngine 3 года назад
Hello, The goal is to upload the build files to your S3 bucket.do you see the build folder if you run ls ? Tha path doesn't look correct. you are targeting a folder called invoice in S3. Do you see that folder in your S3? If you couldn't figure out the S3 upload command simply upload your files from AWS console via web browser.
@chrisjenkins319
@chrisjenkins319 Год назад
Approximately 56:00 to 1:01:00 partial whiteout of video
@iliketocode6986
@iliketocode6986 3 года назад
is there link to source code?
@CodeEngine
@CodeEngine 3 года назад
Hello, Yes you can get the source code from my GitHub repository github.com/CodeEngineTechnology Best Siamak
@S4LTYT
@S4LTYT 2 года назад
everything is perfect except class base component
@CodeEngine
@CodeEngine 2 года назад
Thanks! That is fair:)
@roysurjano6690
@roysurjano6690 4 года назад
Great video! could you share us the source code?
@CodeEngine
@CodeEngine 4 года назад
Thank you! I am glad that you liked it :) You can get the code form my GitHub repo : github.com/CodeEngineTechnology Best Siamak
@roysurjano6690
@roysurjano6690 4 года назад
@@CodeEngine apreciated!
@CodeEngine
@CodeEngine 4 года назад
You are very welcome!!
@sharma_ashish
@sharma_ashish 3 года назад
Can't see your screen from the middle at near 1 hour
@CodeEngine
@CodeEngine 3 года назад
Hi Ashish, Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Please let me know if you have any questions. Best Siamak
@sharma_ashish
@sharma_ashish 3 года назад
@@CodeEngine Really enjoyed your tutorial. Please post Node js video also or add link to the description. Thanks
@CodeEngine
@CodeEngine 3 года назад
You are very welcome Ashish! I am glad that you liked the video :) Best Siamak
@shenth27
@shenth27 3 года назад
Not sure what you were doing around 59:00
@CodeEngine
@CodeEngine 3 года назад
Hi, Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Please let me know if you have any questions. Best Siamak
@CodeEngine
@CodeEngine 2 года назад
You are welcome! You can also manually upload all of the files through S3 console. (Go to S3 and select upload). You don't have to use terminal commands.
@CodeEngine
@CodeEngine 2 года назад
You need to download and install AWS CLI from AWS website.
@CodeEngine
@CodeEngine 2 года назад
aws.amazon.com/cli/
@BillBrutzman
@BillBrutzman 4 года назад
Ugh. I am 49 minutes in _ I have a bug _ I cannot figure it out. Working available code is needed.
@CodeEngine
@CodeEngine 4 года назад
Hi William, Please check out my GitHub repo: github.com/CodeEngineTechnology Best Siamak
@BillBrutzman
@BillBrutzman 4 года назад
@@CodeEngine Thanks. I got it. In the I was missing the :invoices at the end of the line.
@CodeEngine
@CodeEngine 4 года назад
You are welcome! Good job 👍 Best Siamak
@piyushmahapatra5402
@piyushmahapatra5402 3 года назад
Is this video stil relevant ? Thanks
@CodeEngine
@CodeEngine 3 года назад
The technologies in this video are still considered cutting edge.
@steambun5539
@steambun5539 3 года назад
you forgot to remove the white box. we cannot see anything what you are doing.
@CodeEngine
@CodeEngine 3 года назад
Hello, Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Please let me know if you have any questions. Best Siamak
@steambun5539
@steambun5539 3 года назад
@@CodeEngine Thank you for the very detailed tutorial ❤️
@CodeEngine
@CodeEngine 3 года назад
You are very welcome:) Glad you liked it ❤️ Best Siamak
@amrutjadhav1623
@amrutjadhav1623 2 года назад
Please remove Blank White box from video...unable to see configurations correctly
@CodeEngine
@CodeEngine 2 года назад
Hi, Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Or simply upload the files to S3 through AWS console. Please let me know if you have any questions. Best Siamak
@amrutjadhav1623
@amrutjadhav1623 2 года назад
@@CodeEngine I have one nodejs project basically used as microservice. I need to convert this entire nodejs project into AWS lambda with all dependencies. Can you please suggests steps to migrate from nodejs project to aws lambda?
@CodeEngine
@CodeEngine 2 года назад
NodeJS is a supported language in AWS lambda. So all you need to do is copying and pasting the code into lambda. For libraries you can use layers in lambda. Best Siamak
@amrutjadhav1623
@amrutjadhav1623 2 года назад
@@CodeEngine Do you have any video to import nodejs project into aws lambda with all dependencies? Please can you share?
@CodeEngine
@CodeEngine 2 года назад
Unfortunately I don't. AWS blog has an example that you can use.
Год назад
I just see a white box on the most important parts of the tutorial. Couldnt get any information from video because of that.
@CodeEngine
@CodeEngine Год назад
Please see the other comments. I have provided guidance
@matthewlau3551
@matthewlau3551 3 года назад
Inspired by this tutorial, I have put together a Terraform reference project to deploy a serverless full-stack React app onto AWS. Please take a look: github.com/MatthewCYLau/react-serverless-aws-terraform
@CodeEngine
@CodeEngine 3 года назад
Hi Matthew, Great job! thank you for sharing your repository and I appreciate the referral to the video. Best Siamak
@jager0724
@jager0724 Год назад
Dude, you're not showing the commands as you type
@PhuTran-nb7me
@PhuTran-nb7me 3 года назад
58:54 why do you hide your command line? It is no privacy stuff, how are we suppose to learn if you keep concealing what you are coding with a white ass layer through out the video ?
@CodeEngine
@CodeEngine 3 года назад
Hi Phu, Thanks for watching the video! Sorry about that editing error. It will go away after a minute. Please follow the following instructions: (in terminal) AWS configure And finally upload your files to the bucket using: AWS S3 sync build/ S3://yor_appfolder Please let me know if you have any questions. Best Siamak
@PhuTran-nb7me
@PhuTran-nb7me 3 года назад
@@CodeEngine thank you ur so kind
@amitgameandfun
@amitgameandfun 4 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Bro0uFVDrWY.html - from here I see one white overlay which is blocking your scree share not visible waht you are doing.
@CodeEngine
@CodeEngine 4 года назад
Hi Amit, Thanks for watching the video! Sorry about the editing issue. The white overlay will disappear after a few seconds. Best Siamak
@amitgameandfun
@amitgameandfun 4 года назад
@@CodeEngine Thanks for the awesome tutorial.
@CodeEngine
@CodeEngine 4 года назад
You are very welcome Amit! I am glad that you liked it. Best Siamak
Далее
Real Time OCR Web App (React, NodeJS, Python and AWS)
1:52:45
Serverless Functions in Depth with AWS Amplify
1:08:33
Просмотров 46 тыс.
Luiza Rasulova #luizarasulova
00:37
Просмотров 1 млн
Getting started with AWS DynamoDB in .NET
25:01
Просмотров 22 тыс.
Introduction to AWS Lambda & Serverless Applications
56:02
AWS Lambda & DynamoDB - AWS Serverless Part I
42:23
Просмотров 170 тыс.
AWS API Gateway tutorial ( Latest)
31:00
Просмотров 21 тыс.
S-Pen в Samsung достоин Золота #Shorts
0:38
Подключил AirPods к Xbox
0:45
Просмотров 20 тыс.