Getting Mundial de Clicks running locally requires zero configuration. All environment variables have sensible defaults baked intoDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/midudev/mundial-de-clicks/llms.txt
Use this file to discover all available pages before exploring further.
src/lib/config.ts — the Redis connection defaults to localhost:6379 via buildRedisUrl(), so as long as Docker is running with DragonFly on the standard port, the app connects automatically without a single line in .env.
Prerequisites
- Node.js ≥ 22.12.0 — enforced by the
enginesfield inpackage.json - pnpm (the project uses
pnpm@11.5.0as its package manager) - Docker (with Docker Compose) — to run DragonFly, Postgres, and Umami
Setup
Start the infrastructure with Docker Compose
docker-compose.yml:- DragonFly — the Redis-protocol in-memory vote store, exposed on
localhost:6379, with snapshot persistence to a named Docker volume every 5 minutes - Postgres — the relational database that Umami requires for storing analytics events
- Umami — the self-hosted analytics dashboard, exposed on
localhost:3001
Start the development server
Local Services
| Service | URL | Notes |
|---|---|---|
| App | http://localhost:4321 | The voting web app (Astro SSR) |
| Umami | http://localhost:3001 | Analytics dashboard — default login: admin / umami |
| DragonFly | localhost:6379 | Redis protocol — connect with any Redis client |
Available Commands
| Command | Action |
|---|---|
pnpm dev | Start the Astro development server at localhost:4321 with HMR |
pnpm build | Compile a production build into ./dist/ |
pnpm preview | Serve the production build locally (runs the compiled entry.mjs) |
pnpm check | Run astro check for TypeScript type-checking across .astro and .ts files |