Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garysassano/sst-cloudflare-hono-api
SST app that deploys a Hono API to Cloudflare
https://github.com/garysassano/sst-cloudflare-hono-api
cloudflare-hono cloudflare-workers hono hono-api sst sst-hono sst-ion sst-v3
Last synced: 18 days ago
JSON representation
SST app that deploys a Hono API to Cloudflare
- Host: GitHub
- URL: https://github.com/garysassano/sst-cloudflare-hono-api
- Owner: garysassano
- Created: 2024-05-04T13:39:11.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T19:54:08.000Z (5 months ago)
- Last Synced: 2024-07-14T20:53:55.326Z (5 months ago)
- Topics: cloudflare-hono, cloudflare-workers, hono, hono-api, sst, sst-hono, sst-ion, sst-v3
- Language: TypeScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sst-cloudflare-hono-api
SST app that deploys a Hono API to Cloudflare.
## Prerequisites
- **_Cloudflare:_**
- Must have set the `CLOUDFLARE_API_TOKEN` variable in your local environment.
- **_pnpm:_**
- Must be [installed](https://pnpm.io/installation) in your system.## Installation
```sh
pnpm install
```## Deployment
```sh
pnpx sst deploy
```## Usage
1. Grab the `` from the deployment outputs:
```sh
✔ Complete
url:
```2. Upload the `package.json` to the R2 bucket using your Hono API endpoint:
```sh
curl -H "Content-Type: application/json" -T "package.json"
```3. Navigate to `` to see the uploaded `package.json` file.
## Cleanup
```sh
pnpx sst remove
```