This repository contains the source code for https://playground.hello.dev/.
- Git
- Node.js (version 18 or higher)
- A fork of this repository (required for contributions)
- A local clone of the Playground repository
- A Hellō account (Create one at Hellō Wallet)
- A
client_idfor a Hellō application withhttp://localhost:*development redirect URI enabled (Create one at the Hellō Developer Console)
- Run
cd playgroundto navigate to the project root - Run
npm ito install the necessary npm dependencies
- Run
npm run devto start the hot-reloading development server (powered by Vite) - Open http://localhost:5173 in your preferred browser
- Use your application's
client_idand update the value in the Protocol Parameters section - Update the
redirect_uriin the Protocol Parameters section to behttp://localhost:5173
This project is licensed under the MIT License.
playground.hello.dev is served from Cloudflare Workers as static assets (see wrangler.toml).
npm run buildwrites the site todist/.worker/index.jsproxiesPOST /api/eventto Plausible; every other path is a static asset.- Merging a PR into
mainrequires the Ready for merge check (build + tests) and the Cloudflare Workers preview build to pass. - Cloudflare Workers Builds watches
mainand deploys on merge. Nothing deploys from GitHub Actions. public/_headerssets the CSP and is copied intodist/by the build.npm run deploydeploys by hand with your own Cloudflare login. Normally unnecessary.