Giter Club home page Giter Club logo

appliscale / serverless-cat-detector Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 74 KB

Building serverless cat detector with use of AWS. Why? Because cats are everywhere and you need a tool for detecting them! :cat::wink::cat:

Home Page: https://appliscale.io

License: Other

JavaScript 81.68% Makefile 0.70% Shell 1.75% HTML 6.93% CSS 8.95%
aws aws-dynamodb aws-lambda aws-rekognition aws-xray cloudyna nodejs serverless workshop workshop-materials

serverless-cat-detector's People

Contributors

afronski avatar ppikula avatar sebastianfeduniak avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

athiwatp

serverless-cat-detector's Issues

User Interface and Front-End

We need a static, purely client-side web app which will be able to:

  • Upload files to the proper S3 bucket (via API Gateway and Lambda).
  • Review list of uploaded files together with the results of the classification.

Very simple UI - don't need for anything fancy (vanilla JS and some CSS should be enough).

Task includes markup, styles and JS implementation - remember to prepare a template, that many users can reuse later on.

Lambda Implementation - Uploading Files

We need an AWS Lambda implementation that will:

  • Handle file upload,
  • Save meta-data inside DynamoDB table,
  • Trigger further processing.

Ideally there should be no need to use SNS (as S3 may notify another Lambda), but let's validate that.

The same goes for AWS API Gateway configuration.

Preparing script for IAM user accounts and user dependent resources

  • Preparing 25 user accounts pre-populated with passwords that can coexist in one AWS account.
  • Remember about naming (common prefix and user number).

What we need for each user:

  • IAM user account with proper IAM role (access only to the resources for a given user).
    • Permissions:
      • CloudWatch - logs and metrics.
      • X-Ray.
      • DynamoDB.
      • S3.
      • Lambda.
      • SNS (if needed).
  • S3 bucket for website.
  • S3 bucket for code (do we need that?).
  • DynamoDB table.

Showcase with what Serverless Framework can help

Main purpose of that workshop would be to show to use and leverage Serverless in AWS context and environment, but we should also showcase and prepare implementation that is not AWS specific, that will leverage Serverless Framework.

Lambda Implementation - Get Images

We need an AWS Lambda implementation which will list all images (pending and processed ones) together with their state and metadata.

The same goes for AWS API Gateway configuration.

Lambda Implementation - Image Classification

We need an AWS Lambda implementation that will:

  • Handle previously uploaded file,
  • It will invoke AWS Rekognition service,
  • Results will be saved in the corresponding DynamoDB record.

The same goes for AWS API Gateway configuration.

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.