https://github.com/ivanprogramming/piges-birthday-api
API from google sheets table, made with cloudflare workers
https://github.com/ivanprogramming/piges-birthday-api
Last synced: about 1 year ago
JSON representation
API from google sheets table, made with cloudflare workers
- Host: GitHub
- URL: https://github.com/ivanprogramming/piges-birthday-api
- Owner: IvanProgramming
- Created: 2022-09-10T17:54:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-11T07:59:03.000Z (over 3 years ago)
- Last Synced: 2025-01-05T22:44:01.127Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Piges Birthday API
Simple API, that returns birthdays of minipigs
## Created with
- [Cloudflare Workers](https://workers.cloudflare.com/)
- [Cloudflare KV](https://workers.cloudflare.com/)
- [SheetsDB](https://sheetsdb.io/)
- [Hono](https://honojs.dev)
### Deployment
1. Create sheets in SheetsDB
2. Create KV in Cloudflare
3. Copy ID of KV to `wrangler.toml` in `kv_namespaces`
4. Put SheetsDB API url in secrets
```bash
echo "" | wrangler secret put SHEETSDB_API_URL
```
5. (Optional) Put SheetsDB authentication in secrets
```bash
echo ":" | wrangler secret put SHEETSDB_AUTH_TOKEN
```
6. Deploy with `wrangler publish`
[](https://deploy.workers.cloudflare.com/?url=https://github.com/ivanprograming/piges-birthday-api)
### Working with API
API documentation can be built with Swagger UI.
You can find it [here](https://birthday-docs.ivanprograming.xyz/).