Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example: fix aws-companion example (#3850)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
- Loading branch information
Showing
9 changed files
with
589 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
uppy.min.css | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Uppy + AWS S3 Example | ||
|
||
This example uses @uppy/companion with a custom AWS S3 configuration. | ||
Files are uploaded to a randomly named directory inside the `whatever/` | ||
directory in a bucket. | ||
|
||
## Run it | ||
|
||
First, set up the `COMPANION_AWS_KEY`, `COMPANION_AWS_SECRET`, | ||
`COMPANION_AWS_REGION`, and `COMPANION_AWS_BUCKET` environment variables for | ||
`@uppy/companion` in a `.env` file. You may find useful to first copy the | ||
`.env.example` file: | ||
|
||
```sh | ||
[ -f .env ] || cp .env.example .env | ||
``` | ||
|
||
To run this example, from the **repository root**, run: | ||
|
||
```sh | ||
corepack yarn install | ||
corepack yarn workspace @uppy-example/aws-companion start | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
{ | ||
"name": "@uppy-example/aws-companion", | ||
"version": "0.0.0", | ||
"type": "module", | ||
"dependencies": { | ||
"@babel/core": "^7.2.2", | ||
"@uppy/aws-s3": "workspace:*", | ||
"@uppy/core": "workspace:*", | ||
"@uppy/dashboard": "workspace:*", | ||
"@uppy/google-drive": "workspace:*", | ||
"@uppy/webcam": "workspace:*", | ||
"babelify": "^10.0.0", | ||
"body-parser": "^1.18.3", | ||
"budo": "^11.6.1", | ||
"@uppy/webcam": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@uppy/companion": "workspace:*", | ||
"body-parser": "^1.20.0", | ||
"cookie-parser": "^1.4.6", | ||
"cors": "^2.8.5", | ||
"express": "^4.16.4", | ||
"express-session": "^1.15.6", | ||
"npm-run-all": "^4.1.5" | ||
"dotenv": "^16.0.1", | ||
"express": "^4.18.1", | ||
"express-session": "^1.17.3", | ||
"npm-run-all": "^4.1.5", | ||
"vite": "^2.7.1" | ||
}, | ||
"private": true, | ||
"engines": { | ||
"node": ">=14.14.0" | ||
"node": ">=16.15.0" | ||
}, | ||
"scripts": { | ||
"copy": "cp ../../packages/uppy/dist/uppy.min.css .", | ||
"start": "npm-run-all --serial copy --parallel start:*", | ||
"start:client": "budo main.js:bundle.js -- -t babelify", | ||
"start:server": "node server.js" | ||
"dev": "vite", | ||
"start": "npm-run-all --parallel start:client start:server", | ||
"start:client": "vite", | ||
"start:server": "node server.cjs" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.