Posts

Showing posts with the label s3

How to use s3 locally

Image
  This tutorial is about running s3 on local system  to avoid cost and no need to buy aws account service also fast your development.   P rerequisite     - Docker     - LocalStack image I am not going to write this deeply just let you know some steps. If you have not docker install the docker , i will share a docker compose file save this file with docker-compose.yml in your system open this file in vscode. or you can directly compose or build this file using docker command, to make it simple i just using vscode . Open file in vscode and write click on source code then click on option  compose file, this build and compose your file. once your file execute the service will run on localhost:5002   to use this internally in docker use this   http://host.docker.internal:5002 To learn more about it check out other tutorial and here is link how to use dynamodb locally you can follow up to see more steps using that.  how t...

Here is a guide on how to perform a multipart upload of a file to AWS S3

This tutorial will guide you through using the AWS SDK to perform multipart uploads of large files in Node.js. While the tutorial focuses on Node.js, you can apply the same principles to perform multipart uploads in JavaScript on the frontend.   Prerequisite   - AWS SDK   - Nodejs Step 1: Setup the project     Before we begin, let's make sure you have a Node.js project set up. If you don't already have a Node.js project, you can create one by running the npm init command and following the prompts. npm init Step 2: Install the package     To get started, you'll need to install the AWS SDK. You can do this by running the following command in your terminal: npm   install   aws-sdk This will install the necessary package for interacting with AWS services in your project." Before we dive into the details of performing a multipart upload, let's discuss the overall approach and the three methods we'll be using to upload the file in chunks ...