- 27
- 463 048
BiteSize Academy
United States
เข้าร่วมเมื่อ 28 มี.ค. 2019
Bite sized videos that teach you something practical that you can use right away. Mostly about lambda functions and react.
How to test and develop AWS lambda functions locally with nodejs?
⚡️ Blog post and source code: www.undefinedapps.com/post/test-develop-lambda-locally
In this video we build a nodejs lambda function while running and testing it locally.
The lambda function that gets arguments from query params, uses axios to download the html of a website, uses cherio to parse out the title of the page and then saves the html file to S3 and returns a json response back to the user.
We write local tests for the function using mocha and sinon (to create stubs).
The video also covers:
- creating and deploying lambda functions to AWS
- setting up an S3 bucket
- running the lambda function from a public url
- managing lambda releases
- setting up github actions to deploy to AWS on 'git push'
0:00 intro
0:31 explain & demo the function we're testing
1:40 create and run the lambda locally
3:54 create the lambda function on AWS + permissions
4:34 bundle & deploy our local code to AWS
6:21 create a public url to access our function
7:14 write the code to download the html and parse the title (using axios and cherio)
8:52 manage the release of our function
9:45 write tests using mocha and sinon
12:27 create a stub for axios.get() using sinon
15:25 write the code to save files to S3 (using aws-sdk)
12:27 create a stub for S3
17:25 create an S3 bucket on AWS + permissions
18:15 run the function in production
19:06 adjust the tests
19:42 create a GitHub action
21:27 deploy to aws on every 'git push'
22:58 use our new workflow
26:16 create integration e2e tests
⭐️ Subscribe for more content: newsletter.undefinedapps.com/
#aws #lambda #nodejs
In this video we build a nodejs lambda function while running and testing it locally.
The lambda function that gets arguments from query params, uses axios to download the html of a website, uses cherio to parse out the title of the page and then saves the html file to S3 and returns a json response back to the user.
We write local tests for the function using mocha and sinon (to create stubs).
The video also covers:
- creating and deploying lambda functions to AWS
- setting up an S3 bucket
- running the lambda function from a public url
- managing lambda releases
- setting up github actions to deploy to AWS on 'git push'
0:00 intro
0:31 explain & demo the function we're testing
1:40 create and run the lambda locally
3:54 create the lambda function on AWS + permissions
4:34 bundle & deploy our local code to AWS
6:21 create a public url to access our function
7:14 write the code to download the html and parse the title (using axios and cherio)
8:52 manage the release of our function
9:45 write tests using mocha and sinon
12:27 create a stub for axios.get() using sinon
15:25 write the code to save files to S3 (using aws-sdk)
12:27 create a stub for S3
17:25 create an S3 bucket on AWS + permissions
18:15 run the function in production
19:06 adjust the tests
19:42 create a GitHub action
21:27 deploy to aws on every 'git push'
22:58 use our new workflow
26:16 create integration e2e tests
⭐️ Subscribe for more content: newsletter.undefinedapps.com/
#aws #lambda #nodejs
มุมมอง: 17 737
วีดีโอ
How to drag and resize in react using react-spring and use-gesture?
มุมมอง 7K2 ปีที่แล้ว
In this video we'll see how to build a video editing crop tool using reactjs and react-spring use-gesture. ⚡️ Source code and blog post: www.undefinedapps.com/post/drag-resize-react-spring-use-gesture First we build the UI using Mui, a React UI Library. Then, we add a react component which overlays on top of our video player element and lets the user make a selection by dragging and resizing a ...
How to bundle a nodejs lambda function? (using esbuild)
มุมมอง 4.4K2 ปีที่แล้ว
In this video we bundle a nodejs lambda function using lambda-build (powered by esbuild). ⚡️ Blog post and links: www.undefinedapps.com/post/bundle-nodejs-lambda-esbuild ⭐️ Subscribe for more content: newsletter.undefinedapps.com/ #AWS #Lambda #serverless
How to deploy a lambda function using versioning and aliases + API Gateway
มุมมอง 8K2 ปีที่แล้ว
In this video we create a lambda function (a random number generator) and use versions and aliases to manage the deployment of the lambda function. ⚡️ Blog post: www.undefinedapps.com/post/deploy-lambda-versioning-aliases-api-gateway - 0:00 Intro: what are versions (numeric and $LATEST) and aliases and what are they useful for? - 1:58 Iteration #1 - creating the lambda function, a new version, ...
How to build a chat using Lambda + WebSocket + API Gateway? (nodejs)
มุมมอง 52K3 ปีที่แล้ว
⚡️ Blog post and source code: www.undefinedapps.com/post/lambda-websocket-api-gateway-chat In this video we build a real-time chat app (like slack) that uses websockets backed by an AWS lambda function and Amazon API Gateway. The app sends JSON over the websocket to deliver the chat messages and notifications in real time, over a two-way communication line, to all the users of the chat. 0:00 De...
How to drag and drop a div in react using hooks? (react-use-gesture + react-spring)
มุมมอง 17K3 ปีที่แล้ว
⚡️ Live demo and source code: www.undefinedapps.com/post/drag-drop-div-react-hooks In this video we look at how to drag and drop in react using the react-use-gesture and react-spring libraries. We take the introduction screen of create-react-app and add dragging to its components. We then add an overlay which can be dragged up and down to expose a background image behind it. We use the hooks: u...
How to pass a url query string or a route parameter to AWS Lambda from API Gateway?
มุมมอง 13K3 ปีที่แล้ว
⚡️ Blog post: www.undefinedapps.com/post/url-query-route-parameters-lambda-api-gateway In this video we integrate a lambda function with an API Gateway HTTP endpoint and define a proxy route to direct all incoming requests to our function. We then extract the path and the url query string parameters from the event object which is provided as an argument to the lambda function. ⭐️ Subscribe for ...
How to restrict access to a static S3 site using HTTP Basic Auth?
มุมมอง 22K3 ปีที่แล้ว
In this video we add basic auth to an s3 bucket containing a static website. ⚡️ Blog post: www.undefinedapps.com/post/restrict-access-s3-http-basic-auth This way, the browser will display an authentication dialog and require a username and password to get access to the static site. This will protect the files on our s3 bucket and limit access to them. We use a cloudfront distribution and a lamb...
How to animate mount and unmount of a react component? (react-spring)
มุมมอง 68K3 ปีที่แล้ว
⚡️ Blog post: www.undefinedapps.com/post/animate-mount-unmout-react-spring In this video we add animations to the mount and unmount events of a react component using the react-spring animation library and hooks, in a create-react-app project. ⭐️ Subscribe for more content: newsletter.undefinedapps.com/ #react #animate #javascript
How to deploy a lambda function using github actions?
มุมมอง 31K3 ปีที่แล้ว
⚡️ Blog Post: www.undefinedapps.com/post/deploy-lambda-github-actions In this video we deploy a lambda function using GitHub actions ⭐️ Subscribe for more content: newsletter.undefinedapps.com/ #lambda #aws #github
How to generate a time limited presigned S3 URL using the nodejs AWS SDK?
มุมมอง 13K3 ปีที่แล้ว
In this video we create a time limited signed url for an image store on S3, using nodejs. ⚡️ Blog post: www.undefinedapps.com/post/generate-time-limited-presigned-s3-url-aws-sdk Using S3 signed urls, we can limit access to S3 files only to users who has access to these urls. We can also limit the amount of time in which these users can access the files. We also see learn how to generate signed ...
How to connect AWS Lambda to a MySQL database to update it? (using RDS proxy)
มุมมอง 32K3 ปีที่แล้ว
⚡️ Blog post: www.undefinedapps.com/post/lambda-mysql-rds-proxy In this video we connect from a lambda function to an RDS database, first directly and then by using RDS proxy. ⭐️ Subscribe for more content: newsletter.undefinedapps.com/ #lambda #mysql #nodejs
How to use AWS Textract to extract plain text from an image or a document
มุมมอง 5K4 ปีที่แล้ว
⚡️ Blog: www.undefinedapps.com/ In this video we use AWS Textract to extract the text of an image Check out QR Menu Creator here: qrmenucreator.com/ Source code available here: github.com/BiteSizeAcademy/aws-textract-example ⭐️ Subscribe for more content: newsletter.undefinedapps.com/
How to use environment variables with a Lambda function? (and how to encrypt them with KMS)
มุมมอง 17K4 ปีที่แล้ว
AWS Lambda: How to store a secret to an external API? ⚡️ Blog post and source code: www.undefinedapps.com/post/env-variables-lambda-function-kms In this video we take a look at how secrets, private keys and passwords should be stored in a lambda function. First, we extract hardcoded secrets into environment variables, then we learn how to encrypt these variables using a key from KMS (Key Manage...
How to use ImageMagick with a Lambda function on AWS?
มุมมอง 10K4 ปีที่แล้ว
⚡️ Source code and blog post: www.undefinedapps.com/post/imagemagick-lambda ImageMagick is a popular open source utility to transform images. It used to be installed on the OS which lambda functions use, but was removed in the latest version. In this video we look at how to use ImageMagick in a lambda function using lambda layers. We look at an open source project which creates a layer for us t...
How to use layers with Lambda functions?
มุมมอง 40K4 ปีที่แล้ว
How to use layers with Lambda functions?
How to install npm modules in AWS Lambda?
มุมมอง 56K4 ปีที่แล้ว
How to install npm modules in AWS Lambda?
AWS Lambda intro - versions, aliases, concurrency, triggers, logs and monitoring
มุมมอง 3.6K5 ปีที่แล้ว
AWS Lambda intro - versions, aliases, concurrency, triggers, logs and monitoring
Introduction to AWS IAM - policies, permissions, users, groups and roles
มุมมอง 1.9K5 ปีที่แล้ว
Introduction to AWS IAM - policies, permissions, users, groups and roles
Setup ssl/https with an S3 bucket using AWS Cloudfront
มุมมอง 10K5 ปีที่แล้ว
Setup ssl/https with an S3 bucket using AWS Cloudfront
Part 5 - monitoring our app using cloudwatch
มุมมอง 4865 ปีที่แล้ว
Part 5 - monitoring our app using cloudwatch
Part 4 - uploading, deleting and listing files using the AWS s3 API
มุมมอง 12K5 ปีที่แล้ว
Part 4 - uploading, deleting and listing files using the AWS s3 API
Part 3 - implementing a rest API using Lambda and API Gateway
มุมมอง 1.4K5 ปีที่แล้ว
Part 3 - implementing a rest API using Lambda and API Gateway
Part 2 - building a backend for a file uploader app using AWS services
มุมมอง 1.4K5 ปีที่แล้ว
Part 2 - building a backend for a file uploader app using AWS services
Part 1 - Build a file uploader backend using AWS Lambda, API Gateway, S3, Route53, IAM, Cloudwatch
มุมมอง 2.2K5 ปีที่แล้ว
Part 1 - Build a file uploader backend using AWS Lambda, API Gateway, S3, Route53, IAM, Cloudwatch
Upload a file to an S3 bucket using the AWS SDK
มุมมอง 14K5 ปีที่แล้ว
Upload a file to an S3 bucket using the AWS SDK