ruTournament is a Vite single-page application that runs entirely in the browser. The Node.js toolchain is only needed to compile and serve the frontend assets — there is no backend process, no database server, and no environment variables to configure. Once the dev server is running, the entire application (including data storage) operates inside your browser.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SdazaP/ruTournament/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Node.js v16 or later — download from nodejs.org. Check your version with
node -v. - npm (bundled with Node.js), yarn, or pnpm as your package manager.
- Google Chrome or Microsoft Edge are recommended for best IndexedDB compatibility and performance. Firefox works but may have subtle IndexedDB transaction differences.
Setup
Clone the Repository
Open your terminal and clone the ruTournament source repository from GitHub:Then move into the project directory:
Install Dependencies
Install all required packages using your preferred package manager:This installs all
dependencies and devDependencies listed in package.json, including React 18, Vite 4, Tailwind CSS 3, Dexie.js, React Router v6, and the cstimer_module scramble generator.Start the Development Server
Launch the Vite development server with:Vite will compile the project and print a local URL to the terminal. Open it in your browser:The app loads with hot-module replacement enabled — any source file changes you make will reflect in the browser instantly without a full reload.
Build for Production (Optional)
When you are ready to deploy a production-optimized build, run:Vite compiles and minifies all assets into the This starts a lightweight local server pointing at
dist/ directory. You can preview the production bundle locally before deploying:dist/, letting you verify the production build behaves identically to the dev server.Deploying to Vercel
The repository ships with avercel.json that configures SPA-style URL rewrites — all routes are redirected to index.html so that React Router can handle client-side navigation correctly:
vercel.json
- Push your clone (or fork) to a GitHub repository.
- Go to vercel.com and click Add New Project.
- Import the GitHub repository — Vercel will automatically detect the Vite framework.
- Click Deploy. No environment variables or build-command overrides are needed.
main branch and every subsequent push will trigger a new deployment automatically.
Available Scripts
| Script | Description |
|---|---|
npm run dev | Start Vite dev server on port 5173 with hot-module replacement |
npm run build | Production build — compiles and minifies assets to dist/ |
npm run preview | Preview the production build locally using Vite’s built-in static server |
