Giter VIP home page Giter VIP logo

serverless-masterclass's Introduction

Serverless File Upload API using Amazon S3, API Gateway & AWS Lambda

Problem

Build a serverless architeture to upload media files from different users into your application

Services

  • API Gateway: APIs act as the "front door" for front-end applications, and secure APIs at any scale.
  • Lambda function: Serverless function that can run code without provisioning or managing infrastructure.
  • S3: Object storage built to retrieve any amount of data from anywhere.

Project

  • Receives a base64 encoded string file from API Gateway and send to s3 through the lambda.
  • To make a base64 file click here to use easy64 website
  • Because it's only allowed media files, mime type is verified and if is not found or it's not a media file an exception is thrown.
  • Once file is successfully verified, it will be uploaded to the s3

Body example ![example](./screenshots/jsonbase64.png)
The response should be this:
![example](./screenshots/responseS3.png)

serverless-masterclass's People

Contributors

andremelinski avatar

Stargazers

 avatar

Watchers

 avatar

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.