A simple math puzzle built with preeact, TypeScript, Vite, and Cloudflare Workers.
You can see it deployed at https://sidewaysarithmetic.lucamasters.com/
- nvm use
- nvm install
- npm run dev
You'll need a wrangler.toml file configured for your Cloudflare account:
name = "sideways-arithmetic"
main = "src/main.tsx"
compatibility_date = "2024-01-01"
[[kv_namespaces]]
binding = "SIDEWAYSARITHMETIC"
id = "<your-kv-namespace-id>"
[assets]
directory = "./dist"
[build]
command = "npm run build"
Then run: npx wrangler deploy
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh