https://github.com/uvacoder/tablefare
https://github.com/uvacoder/tablefare
cloudflare
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uvacoder/tablefare
- Owner: Uvacoder
- License: mit
- Created: 2022-05-22T01:54:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-22T01:54:27.000Z (almost 4 years ago)
- Last Synced: 2025-03-17T18:51:52.209Z (11 months ago)
- Topics: cloudflare
- Language: JavaScript
- Homepage:
- Size: 300 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# tableflare
Airtable + Cloudflare Workers URL Shortener 🌤
[](https://deploy.workers.cloudflare.com/?url=https://github.com/grikomsn/tableflare)
## Quick Start
**Airtable**
- Generate your Airtable API key from your account dashboard: https://airtable.com/account
- Copy tableflare base template to your account: https://tableflare.griko.dev/template
**GitHub project and Cloudflare Workers**
- Generate your own tableflare repository using this template: https://tableflare.griko.dev/generate
- Generate your API token on your Cloudflare dashboard: https://tableflare.griko.dev/generate-cf-token
- Add your generated token as `WRANGLER_TOKEN` secret value on your GitHub project
- Edit [`wrangler.toml`](./wrangler.toml) with your credentials ([read more below](#configuration))
- Push your changes and it'll deploy automatically using [Cloudflare's Wrangler GitHub Actions](https://github.com/cloudflare/wrangler-action)
## Configuration
**wrangler.toml**
```toml
# change values with your credentials
account_id = ""
zone_id = ""
name = "tableflare"
route = "tableflare.griko.dev/*" # change value to your worker name
type = "javascript"
workers_dev = true
compatibility_date = "2022-01-06"
[vars]
# change values with your credentials
AIRTABLE_BASE = "appxxxxxxxxxxxxxx"
AIRTABLE_KEY = "keyxxxxxxxxxxxxxx"
# pass any valid url for base redirect
DEFAULT_REDIRECT = "https://github.com/grikomsn/tableflare"
# if you rename your table on airtable, make sure to change this
TABLE_NAME = "Tableflare"
```
## License
[MIT License, Copyright (c) 2022 Griko Nibras](./LICENSE)