Files
buildpath/dev
Valentin Haudiquet dae65c8fa2
All checks were successful
pipeline / lint-and-format (push) Successful in 4m44s
pipeline / build-and-push-images (push) Successful in 4m7s
Allow collecting data from EUNE, NA, KR on top of EUW
- match_collector: query API and build collections for each platform
- match_collector: aggregate champion stats of each platform in one collection with platform annotations
- frontend: replace stats to count matches in platform-specific collections
- frontend: replace "EUW Challengers" with all supported platforms
- dev: adapted scripts to count match in platforms
2026-04-17 16:25:19 +02:00
..

BuildPath Development Database Setup

This directory contains scripts and tools for setting up a development MongoDB instance with realistic data for frontend testing.

📁 Structure

dev/
├── data/                  # Data files (patches.json, match files, db data)
├── scripts/               # Setup and import scripts
│   ├── setup-db.js        # Main setup script
│   ├── process-matches.js # Stream-based match importer
└── README.md              # This file

Quick Start

node dev/scripts/setup-db.js

This will:

  1. Download a production snapshot with realistic data
  2. Import patches data
  3. Import matches using stream processing (optimized for large files)
  4. Generate champion statistics

Individual Commands

Generate Stats Only

node dev/scripts/setup-db.js generate-stats

Check Database Status

node dev/scripts/setup-db.js status