A Node.js application for uploading files to Amazon S3.
S3 File Uploader is a simple Node.js application that allows users to upload files to Amazon S3 cloud storage.
To run the S3 File Uploader locally, follow these steps:
- Clone the repository:
git clone https://github.com/EzgiTastan/S3-File-Uploader.git
- Navigate to the project directory:
cd aws-s3-demo
- Install dependencies:
npm install express multer aws-sdk
To use the S3 File Uploader, set up your environment variables:
- Create a .env file in the root directory.
- Add your AWS credentials and S3 bucket name to the .env file:
AWS_ACCESS_KEY_ID=your_access_key_id
AWS_SECRET_ACCESS_KEY=your_secret_access_key
AWS_S3_BUCKET_NAME=your_bucket_name
- Run the project:
npm start
- Open your web browser and navigate to http://localhost:3000.
- Select a file to upload and click the "Upload" button.
- Yeey!