https://github.com/codewithmuh/s3-react
https://github.com/codewithmuh/s3-react
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codewithmuh/s3-react
- Owner: codewithmuh
- Created: 2022-08-06T10:03:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-08T08:02:32.000Z (almost 4 years ago)
- Last Synced: 2025-05-07T21:06:45.699Z (about 1 year ago)
- Language: JavaScript
- Size: 350 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React App with S3
Today in the presence of some awesome serverless cloud solutions like AWS and Firebase, handling file upload has become a piece of cake. Today we will see how we can quickly create an S3 bucket and upload files directly from our front-end React application.
## Pre Requisites
##### 1. An AWS Account
##### 2. Basic Understanding of ReactJS
### Step 1. Create S3 Bucket
Log in to your aws console. Search for Amazon S3 and click on Create bucket.
Then give it a name and select the proper region. Then uncheck the Block all public access just for now (You have to keep it unchecked in production).
## Step 4. Set Up React Project
npx create-react-app s3-upload-react
## Step 5. Upload File Via Native SDK
If we use other aws services in our project then we have a special npm package for that named aws-sdk.