How we work during testing: GitHub updates often, Cloudflare only when you say so.
| Step | What happens |
|---|---|
| 1. Apply changes | Code edits + merge to main on GitHub |
| 2. GitHub Pages | Game site auto-updates (free) — optional for quick look |
| 3. Cloudflare API | Does NOT auto-deploy — you run deploy manually when ready |
| 4. Test locally | Download ZIP → run local server → play on your PC |
After changes are on main:
https://github.com/jericddd/MonEx/archive/refs/heads/main.zip
Or: GitHub repo → Code → Download ZIP
Or: GitHub → Actions → Package test ZIP → Run workflow → download artifact (no node_modules).
cd path\to\MonEx-main\x-bot npm install npm run server
Open in browser:
http://localhost:3001/home.html http://localhost:3001/monanimal_game.html
Local server uses the same API routes as Cloudflare. For cloud API instead, set js/monex-config.js to your Worker URL.
When you are ready to push API changes live:
mainOr on your PC:
cd cloudflare\monex-api npx wrangler deploy
| Target | On push to main |
|---|---|
| GitHub Pages (game HTML/JS) | ✅ Auto |
| Cloudflare Worker (API) | ❌ Manual only |