Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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