Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garysassano/sst-cloudflare-api
SST app that deploys an API to Cloudflare
https://github.com/garysassano/sst-cloudflare-api
api cloudflare cloudflare-workes r2 r2-bucket sst sst-ion sst-v3
Last synced: 20 days ago
JSON representation
SST app that deploys an API to Cloudflare
- Host: GitHub
- URL: https://github.com/garysassano/sst-cloudflare-api
- Owner: garysassano
- Created: 2024-04-18T17:56:42.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-26T20:30:28.000Z (4 months ago)
- Last Synced: 2024-12-04T12:13:59.450Z (3 months ago)
- Topics: api, cloudflare, cloudflare-workes, r2, r2-bucket, sst, sst-ion, sst-v3
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sst-cloudflare-api
SST app that deploys an 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 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
```