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

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

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
```