https://github.com/jasterv/axum-s3-file-stream
An example of how to stream a file from S3 down to an http client on axum
https://github.com/jasterv/axum-s3-file-stream
Last synced: about 1 year ago
JSON representation
An example of how to stream a file from S3 down to an http client on axum
- Host: GitHub
- URL: https://github.com/jasterv/axum-s3-file-stream
- Owner: JasterV
- Created: 2023-07-08T11:13:49.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-08T23:06:21.000Z (almost 3 years ago)
- Last Synced: 2025-03-07T21:32:55.739Z (about 1 year ago)
- Language: Rust
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# axum-s3-file-stream
An example of how to stream a file from S3 down to an http client on axum
## How to try it out
1. Spin up `minio` by executing `docker compose up`, or `docker compose up -d` if you want to keep using the same terminal
2. Open the browser, go to `localhost:9001` and login into the `minio` interface with the credentials you find in the `compose` file
3. Create a bucket and upload some files
4. Update the `BUCKET` env variable in the Makefile to match the name of the one you've created
5. Now you can run the app by executing `cargo make run` or `cargo make run-watch` if you want it to re-build an run real-time when updating the code.