This guide walks you from a fresh machine to a fully working local instance of HADOS, including a configured Firebase backend and your first Dado (tournament group).Documentation Index
Fetch the complete documentation index at: https://mintlify.com/VasquezRivero92/HabboCafe/llms.txt
Use this file to discover all available pages before exploring further.
Clone the repository and install dependencies
HADOS uses Vite as its build tool and Node.js for the static production server. Clone the repository and install all JavaScript dependencies with npm.After installation you will have all production and development dependencies available, including React 19, Firebase SDK 12, and Lucide React icons.
Node.js 18 or later is required. The project uses ES modules (
"type": "module" in package.json), so avoid Node versions older than 16.Create a Firebase project
HADOS relies on Firebase Authentication and Firestore. You need a free Firebase project before you can run the app.
- Go to console.firebase.google.com and click Add project.
- Give your project a name (e.g.
habbocafe-local) and complete the setup wizard. - In the left sidebar, open Build → Firestore Database and click Create database. Choose Start in production mode and pick a region close to your users.
- In the left sidebar, open Build → Authentication and click Get started. Under the Sign-in method tab, enable the Email/Password provider.
Configure src/firebase.ts
Back in the Firebase Console, go to Project settings (the gear icon) and scroll down to Your apps. If no web app exists yet, click the Web icon (All seven config fields (
</>) to register one. Firebase will display a config object — copy the values into src/firebase.ts.The file is already structured correctly; you only need to replace the placeholder values:src/firebase.ts
apiKey, authDomain, projectId, storageBucket, messagingSenderId, appId, measurementId) are sourced directly from your Firebase project’s web app settings — never commit real values to a public repository.Start the development server
With Firebase configured, start the Vite development server:Vite will print a local URL (typically The login page shows the HADOS TORNEOS logo and two form modes: Iniciar Sesión (Login) and Regístrate aquí (Register). No accounts exist yet in your fresh Firestore, so the next step is to create the Global Admin account.
http://localhost:5173). Open it in your browser and you will see the HADOS login screen.Register as Global Admin
The Global Admin is the platform owner and is the only role that can create new Dados. To register with this elevated role you need the secret platform code.
- On the login screen, click Regístrate aquí to switch to the registration form.
- Check the Registrar como Administrador Global checkbox that appears at the top of the form.
- Fill in an email address and a password (minimum 6 characters).
- In the Código Secreto Global field that appears, enter the secret code:
- Click Registrarse. HADOS will create a Firebase Auth user and a matching Firestore document in the
userscollection withrole: "global_admin".
Create your first Dado
With a Global Admin session active, navigate to the Panel Global tab in the top navigation bar.
- In the Crear Nuevo Ambiente (Dado) section, type a name for your first tournament group in the Nombre del Dado field (e.g.
Dado Principal). - Click Generar Dado.
dados Firestore collection. The Dado immediately appears in the Listado de Dados table below.From this table you can also assign a Dado Admin by selecting any registered user from the dropdown next to the Dado row. Once assigned, that user gains access to the Panel Dado tab where they can configure rules, schedules, prize amounts, and start tournament cycles.Available Scripts
| Script | Command | Description |
|---|---|---|
| Development server | npm run dev | Starts Vite HMR dev server on localhost:5173 |
| Production build | npm run build | Runs TypeScript compiler then Vite bundler into dist/ |
| Production preview | npm run preview | Serves the dist/ folder with Vite’s built-in preview server |
| Lint | npm run lint | Runs oxlint across the source files |
Production Serving
For production deployments, the repository includesserver.js — a plain Node.js HTTP server that serves the dist/ folder and falls back to index.html for any unmatched route (SPA fallback routing).
PORT or SERVER_PORT environment variables, defaulting to 8080 if neither is set.