Lottery is a web app for annual events and similar gatherings. It runs a Three.js sphere raffle with Excel import, configurable prizes, and result export.
Overview
Lottery combines a Vue 3 and Vite front end with a Node Express back end to run prize draws on a 3D sphere animation. Organizers configure prize tiers, images, and draw counts, load participant lists from spreadsheet templates, and show results on screen.
Winners can be excluded from later rounds, absent winners can be redrawn, and results sync to Excel. Server restarts preserve winner data until an explicit reset on the page. After main prizes finish, operators can keep drawing special awards such as red envelopes.
Enterprise branding can appear on cards. Docker and Docker Compose deployment is documented, mapping container ports for local or server hosting. The front end still loads certain Three.js helper scripts as globals for visual parity with earlier releases.
The stack keeps the same HTTP API as earlier versions while the UI was rebuilt as Vue components for faster development feedback.
Key features
- Three.js CSS3D sphere animation
- Excel participant import
- Excel result export
- Configurable prize tiers
- Winner exclusion and redraw rules
- Persistent draw state on restart
- Vue 3 plus Express stack
- Docker and Compose deployment
Use cases
- Company annual dinner raffles
- On-stage prize ceremonies
- Configurable multi-tier giveaways
- Self-hosted event lotteries