https://github.com/jvarho/uppload-serverless-s3
serverless s3 backend for uppload
https://github.com/jvarho/uppload-serverless-s3
python s3 serverless uppload
Last synced: 5 months ago
JSON representation
serverless s3 backend for uppload
- Host: GitHub
- URL: https://github.com/jvarho/uppload-serverless-s3
- Owner: jvarho
- License: isc
- Created: 2020-04-09T15:41:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-07T13:35:01.000Z (about 5 years ago)
- Last Synced: 2024-06-13T08:05:39.047Z (about 2 years ago)
- Topics: python, s3, serverless, uppload
- Language: JavaScript
- Homepage:
- Size: 371 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
uppload-serverless-s3
===
Example python backend for uploading images to AWS S3 using serverless.
Example uploader using uppload and create-react-app.
Back-end
---
To set up the backend:
1. Set up your AWS credentials in serverless.yml
2. Run `npm install` to install dependencies.
3. Run `npm run deploy` to deploy.
This creates the S3 bucket and API. Output shows something like:
api keys:
dev-uppload-serverless-s3-api-key:
endpoints:
ANY - https://.execute-api.us-east-1.amazonaws.com/dev/{proxy+}
functions:
wsgi: uppload-serverless-s3-dev-wsgi
You need the secret api key and the API prefix to run the demo.
Copy the example/.env.template to example/.env and fill them in.
Note: Even though the S3 is private, the GET api is public by default!
Front-end
---
Then you can start the demo by running under example:
1. `npm install`
2. `npm start
The demo allows uploads from camera or local files.
You can add other methods normally using uppload:
https://uppload.js.org/