Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michalzalecki/aws-direct-upload
Example app and node server setup to perform direct upload to AWS from the browser
https://github.com/michalzalecki/aws-direct-upload
Last synced: 28 days ago
JSON representation
Example app and node server setup to perform direct upload to AWS from the browser
- Host: GitHub
- URL: https://github.com/michalzalecki/aws-direct-upload
- Owner: MichalZalecki
- Created: 2016-10-26T20:16:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-26T21:58:11.000Z (almost 8 years ago)
- Last Synced: 2024-10-25T12:38:49.016Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Direct Upload
Example app and node server setup to perform direct upload to AWS from the browser
## Installation
```
cp .env-example .env
yarn
```## Usage
Start **express** (serving files in production).
```bash
npm start
```Start **express with webpack-dev-middleware** (in development).
```bash
npm run start:dev
```Start **express with webpack-dev-middleware and webpack-dashboard** (for SWAG).
```bash
npm run start:dashboard
```Build (also run in `postinstall`). Make sure you are creating React bundle in `production`
environment.```bash
NODE_ENV=production npm run build
```You can specify `PORT` for both: development and production server (default to `8080`).
```
PORT=5000 npm start
PORT=8081 npm run start:dev
```