An open API service indexing awesome lists of open source software.

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

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/