https://github.com/walshydev/uk-meetup-demo
https://github.com/walshydev/uk-meetup-demo
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/walshydev/uk-meetup-demo
- Owner: WalshyDev
- Created: 2022-04-15T11:46:52.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-22T19:55:14.000Z (over 4 years ago)
- Last Synced: 2025-11-11T08:02:29.721Z (9 months ago)
- Language: TypeScript
- Size: 291 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloudflare London Meetup (Pages + R2)
This demo is using Cloudflare Pages and R2 (using Worker bindings). Sadly I did not get around to adding R2 bindings for Functions but that will be supported in the future!
## Upload an image
To upload an image simply clone this repo and then run the `upload.sh` file if you're on Mac/Linux or the `upload.bat` file if you're on Windows.
```bash
./upload.sh assets/cloudflare-logo.png
# -- or --
./upload.bat assets/cloudflare-logo.png
```
## Setup
1. Clone the repo
2. Create the R2 bucket with [wrangler2](https://github.com/cloudflare/wrangler2)
1. `wrangler r2 bucket create uk-meetup`
3. Deploy to [Cloudflare Pages](https://pages.dev)
4. Deploy the Worker
1. Modify the `wranger.toml` to include your domain
2. Publish! `wrangler publish`
5. Enjoy!