Files
buildpath/dev
Valentin Haudiquet fe128c0848 Frontend updates: caching basic data (json) from CDragon
Implement caching in the patch_detector, consume the cache from API routes in frontend
2026-02-28 00:23:04 +01: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