DEV Community

Cover image for Building a Serverless File Sharing Platform
Lokeshwar Rajan
Lokeshwar Rajan

Posted on

2

Building a Serverless File Sharing Platform

DESCRIPTION:

I built a Serverless File Sharing Platform that enables users to securely upload and download files through a straightforward HTTP API. This platform uses AWS Lambda for serverless compute, API Gateway for managing RESTful APIs, and Amazon S3 for scalable and durable object storage.

ARCHITECTURE:

Image description

Here's Step by Step Guide:

Step 1 : Create an S3 bucket to store uploaded files
Step 2 : Create Upload and Download Lambda Functions with required
execution role with necessary IAM Role for S3.
Step 3 : Create an API Gateway with POST and GET Methods and integrate
it with the lambda functions
Step 4 : Configure GET Method

{
  "queryStringParameters": {
      "fileName": "$input.params('fileName')"
  }
}

Enter fullscreen mode Exit fullscreen mode

Step 5 : Configure POST Method

{
  "body" : "$input.body",
  "queryStringParameters" : {
      "fileName" : "$input.params('fileName')"
  }
}

Enter fullscreen mode Exit fullscreen mode

Step 6 : Now Deploy the API and Test the application using a third party
client such as Postman etc.

Proof Of Concept:

Image description

Image description

Image description

Image description
Image description

Image description

Image description

As this is my first post here I'm very excited and curious to explore many more stuffs and grow together as a community.
Cheers Devs

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (2)

Collapse
 
aregaz profile image
Illia Ratkevych •

Nice idea!
Have you tried anything else except text? Maybe images?

Collapse
 
lokewrites profile image
Lokeshwar Rajan •

Thanks !!
Nahh! I will try it soon.

👋 The next DEV Challenge is live

Participate in the Agent.ai Challenge

Make your life easier and win some cash? Sounds like a plan!

We are so excited to team up with Agent.ai for our next community challenge – can you guess what we’ll be building?! 🤖😎

Join the challenge

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay