Skip to content

nogibjj/serverless_aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project3 Serverless Web Application using AWS Lambda, API Gateway, S3 Bucket

Sentiment Analysis

Python application test with Github Actions

Project Architecture and Workflow

project

Project purpose:

The project aims to build a serverless web application that is able to reuturn a sentiment report without a server, and perform Continuous Integration through Github Actions and configure Build Server to deploy changes on build (Continuous Delivery) using AWS Lambda, API Gateway and S3 bucket.

Project process:

  1. Have all the fromt-end files ready (index.html, style.css, script.js)
  2. Create lambda_function and add API Gateway

connection_lambda_APIGateway

  1. Test if 2 buckets in S3 are created successfully from the lambda function.
  2. Get the invoke URL in AWS GW and add in the getResp() in script.js.
  3. In lambda function, create the connection to AWS Comprehend.
  4. Upload the three web page files to a new S3 Bucket (in total, we should have 3 buckets)

S3_bucket

7. In the bucket, enable static web page hosting. Test the deployment! Done 🌼

Deployed using S3 static web page

http://hostappwithemma.s3-website-us-east-1.amazonaws.com/

Example Output

The input is coming from ABC news article (https://abcnews.go.com/US/shooting-reported-denver-high-school-2-adults-hospitalized/story?id=98045110)

example_output_serverless

Reference

https://towardsdatascience.com/building-full-stack-serverless-nlp-applications-with-javascript-aws-c63ca365cd15 https://www.youtube.com/watch?v=n5XFPLo4Bbw

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published