https://github.com/mechadragonx/file-uploader
A web application using Node.js and Express that allows the user to upload a valid file using a website to AWS S3 buckets defined in a config.json file
https://github.com/mechadragonx/file-uploader
aws aws-s3 aws-sdk express handlebars nodejs
Last synced: 3 months ago
JSON representation
A web application using Node.js and Express that allows the user to upload a valid file using a website to AWS S3 buckets defined in a config.json file
- Host: GitHub
- URL: https://github.com/mechadragonx/file-uploader
- Owner: MechaDragonX
- Created: 2020-02-06T19:38:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-06T23:36:07.000Z (over 6 years ago)
- Last Synced: 2025-03-11T01:31:12.585Z (over 1 year ago)
- Topics: aws, aws-s3, aws-sdk, express, handlebars, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File Uploader
## What is it?
A web application using Node.js and Express that allows the user to upload a valid file using a website to AWS S3 buckets. The views are written in Handlebars. The front and back end both check to see if the file uploaded is valid.
## How do I use it?
### Prerequsites
- Node.js
- NPM
In the terminal type:
```shell
> npm i
```
This will install all the Node packages that the project uses.
### Config JSON File
For all user-specific details such as the S3 bucket details, port number, and an array of accepted MIME Types, I use a `config.json` file in the root directory.
Format:
```js
{
"accessKey": "", // S3 Bucket Access Key
"secretAccessKey": "", // S3 Bucket Secret Access Key
"bucketName": "", // S3 Bucket Access Key
"port": 3100, // Local Host Port to Use
"acceptedMIMETypes": [ // Array of exepted MIME Types
"",
""
]
}
```
## Possible New Features
- Uploading to Google Drive, Dropbox, OneDrive, box, etc.