← Back to home中文

Live event project | Main developer

Taipei Manhole Cover Charm Festival

This online event turned city manhole covers into digital charms. People could sign in daily to draw a charm, build a collection, keep a check-in streak, and share. I was the main developer for the public site and operations dashboard. Both used the same package for event rules. The whole system ran on Cloudflare.

Open event site

Problems to solve

System design

Parts

Public site

① Event website

A single-page app where people draw a daily charm, build their city collection, check in on consecutive days, view prizes, and share. Public file and data IDs cannot be guessed.

React, TypeScript, Vite, TanStack Router / Query

② Event API

Handles daily draws, check-ins, collections, prize draw eligibility, and prize claims. It creates share images and share pages with tokens. It uses a human verification check to prevent draw abuse.

Cloudflare Pages Functions, D1

Operations

③ Operations dashboard

Staff can draft and publish event settings, run prize draws, manage prizes, view and export reports, set alert rules, handle personal data requests, and look up audit logs.

React, TypeScript, Ant Design Pro, Ant Design Charts, TanStack Query

④ Operations API

Verifies identity tokens issued by the access control service before handling requests. Event settings are versioned and use a typed publish request before going live. The API logs changes before writing them and keeps a backup copy of the audit log.

Cloudflare Pages Functions, D1, KV, R2

Shared

⑤ LINE Login

It exchanges an authorization code for an identity token, verifies the signature, and sets a session cookie. People do not need a separate username or password.

OAuth authorization code flow, JWKS / JWT signature verification

⑥ Shared event rules package

The public API and operations API use the same types and logic for event settings, collections, prize draw eligibility, and the number of prize draw entries.

TypeScript workspace package

Analytics

⑦ GA4 event analytics

The Google tag loads only after consent. It tracks steps such as LINE login, charm draws, sharing, and monthly check-ins. Share sources must be on an allowlist. An A/B test compares image loading methods for charm draws. The app reports which version users saw along with image loading metrics. Analytics errors do not interrupt the event.

GA4 (gtag), consent management, A/B exposure logs

Testing, deployment, and operations