mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
26 lines
456 B
Markdown
26 lines
456 B
Markdown
# r2-image-viewer-tinygo
|
|
|
|
* An example server which returns image from Cloudflare R2.
|
|
* This server is implemented in Go and compiled with tinygo.
|
|
|
|
## Example
|
|
|
|
* https://r2-image-viewer-tinygo.syumai.workers.dev/syumai.png
|
|
|
|
## Development
|
|
|
|
### Requirements
|
|
|
|
This project requires these tools to be installed globally.
|
|
|
|
* wrangler
|
|
* tinygo
|
|
|
|
### Commands
|
|
|
|
```
|
|
make dev # run dev server
|
|
make build # build Go Wasm binary
|
|
make deploy # deploy worker
|
|
```
|