Giter VIP home page Giter VIP logo

serverless_aws's Introduction

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

serverless_aws's People

Contributors

emmawang00 avatar

Stargazers

Chris. avatar

Watchers

Noah Gift avatar  avatar

Forkers

emmawang00

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.