Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanarus/ws-on-worker
https://github.com/kanarus/ws-on-worker
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanarus/ws-on-worker
- Owner: kanarus
- Created: 2024-11-07T18:37:57.000Z (8 days ago)
- Default Branch: main
- Last Pushed: 2024-11-07T22:50:32.000Z (8 days ago)
- Last Synced: 2024-11-07T23:30:07.553Z (8 days ago)
- Language: Rust
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloudflare Workers template
## Prerequisites
- Rust toolchain of latest version with `wasm32-unknown-unknown` target
- npmIn addition, `wasm-opt` is recommended to be installed.
## Setup
```sh
npm create cloudflare ./path/to/project-dir -- --template https://github.com/ohkami-rs/ohkami-templates/worker
```
```sh
cd ./path/to/project-dir
```and if you push the project to your GitHub repo, **You should add `wrangler.toml` into .gitignore**!
## Local dev
```sh
npm run dev
```## Publish
```sh
npx wrangler login
```
```sh
npm run deploy
```
If you register your workers.dev subdomain at this time, it takes some minutes for DNS records to update and it's good time to take a coffee break.