https://github.com/xjonathanlei/worker-starkliup-install
A simple Cloudflare worker that just serves the starkliup install script
https://github.com/xjonathanlei/worker-starkliup-install
Last synced: about 1 year ago
JSON representation
A simple Cloudflare worker that just serves the starkliup install script
- Host: GitHub
- URL: https://github.com/xjonathanlei/worker-starkliup-install
- Owner: xJonathanLEI
- Created: 2023-06-25T02:34:54.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-25T08:03:43.000Z (about 3 years ago)
- Last Synced: 2025-07-07T01:12:18.035Z (about 1 year ago)
- Language: Rust
- Homepage: https://get.starkli.sh
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# worker-starkliup-install
A simple serverless Cloudflare Worker for serving the [install script](https://github.com/xJonathanLEI/starkli/blob/master/starkliup/install) for `starkliup`. The primary reason for this to exist is to (unnecessarily) save users an HTTP redirection roundtrip.
## Prerequisite
Since the codebase is written in Rust, you'll need to [install Rust](https://www.rust-lang.org/tools/install) to build the worker.
[Wrangler 2](https://github.com/cloudflare/wrangler2) is also required to develop and deploy this project. Do not confuse it with the older version.
## Development
Cloudflare Workers is a closed-source SAAS offering. The closest thing we can get for local development is [miniflare](https://github.com/cloudflare/miniflare). To start, install it with `npm` (do _NOT_ install with `yarn` until this [issue](https://github.com/cloudflare/miniflare/issues/454) resolves) with:
```console
npm install -g miniflare
```
Then, build the worker:
```console
wrangler publish --dry-run
```
Finally, run the compiled worker with `miniflare` with the script provided:
```console
./dev.sh
```
The local worker instance should expose the service on port `8787`, which can be customized via the `--port` flag.