ejreyme / s3-demo

Direct file upload to AWS S3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Direct Upload to AWS S3

Demonstrating direct upload to AWS S3 based on the full guide below made by Heroku.

Direct to S3 File Uploads in Node.js

Getting Started

$ git clone https://github.com/dabboxking/s3-demo.git

Service Setup

```bash $ cd imager-service ```

Add a .env file in the directory with the following variables

```bash PORT=3030 S3_BUCKET=[your s3 bukcet name] AWS_ACCESS_KEY_ID=[your aws access key id] AWS_SECRET_ACCESS_KEY=[your aws secret access key] ```

Running the service

```bash $ npm install $ npm run dev ```

Client Setup

```bash $ cd imager-client ```

Add a .env file in the directory with the following variable

```bash PORT=3000 ```

Running the service

```bash $ npm install $ npm start ```

Open browser to http://localhost:3000

About

Direct file upload to AWS S3


Languages

Language:JavaScript 68.8%Language:HTML 31.2%