https://github.com/kwlzn/beer-thirty-cloudflare
Beer Menu Enrichment via a Cloudflare Worker implemented in Rust
https://github.com/kwlzn/beer-thirty-cloudflare
cloudflare-worker cloudflare-workers cloudflare-workers-kv rust
Last synced: 2 months ago
JSON representation
Beer Menu Enrichment via a Cloudflare Worker implemented in Rust
- Host: GitHub
- URL: https://github.com/kwlzn/beer-thirty-cloudflare
- Owner: kwlzn
- Created: 2024-10-30T02:33:52.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-13T06:45:25.000Z (5 months ago)
- Last Synced: 2024-12-28T21:18:34.737Z (4 months ago)
- Topics: cloudflare-worker, cloudflare-workers, cloudflare-workers-kv, rust
- Language: Rust
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Beer Thirty Tap Menu
This is a [rust-based Cloudflare worker](https://developers.cloudflare.com/workers/languages/rust/) for enriching and reconstituting the tap menu at [Beer Thirty](https://www.beerthirtysantacruz.com/) (a popular tap room in Santa Cruz, CA).
In particular, this worker:
1. Fetches and parses the [bthirty.com](http://bthirty.com) TapHunter menu.
2. Cross-references [Untapp'd](https://untappd.com) for ratings + review links.
3. Groups by category (IPAs, Sours, etc).
4. Sorts within the group by ABV and heatmaps the ABV column.
5. Renders this in a table for easy tap selection.This code is compiled to a wasm binary, which is then composed with some shims by the `worker-build` binary to produce an E2E working rust Cloudflare worker.
# Development
## Run a Local Dev Server
```
$ npx wrangler dev
```## Dry-run Deploy to Cloudflare
This is useful for checking the final package size before deploying, which must be <1MB for free Cloudflare deployments.
```
$ npx wrangler deploy --dry-run
```## Deploy to Cloudflare
```
$ npx wrangler deploy
```