This project uses Cloudflare Pages Functions for player stats API. To run locally:
-
Install Wrangler CLI:
npm install -g wrangler
-
Run the development server:
wrangler pages dev
-
Open the local URL shown in the terminal (usually
http://localhost:8788).
Note: For testing the API endpoint, use http://localhost:8788/api/player?name=PlayerName
Deploy to Cloudflare Pages - the functions in /functions will be automatically built and deployed.