Better dev experience, better front page
All checks were successful
pipeline / build-and-push-images (push) Successful in 5m30s
All checks were successful
pipeline / build-and-push-images (push) Successful in 5m30s
This commit is contained in:
40
dev/README.md
Normal file
40
dev/README.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# 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
|
||||
|
||||
```bash
|
||||
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
|
||||
|
||||
```bash
|
||||
node dev/scripts/setup-db.js generate-stats
|
||||
```
|
||||
|
||||
### Check Database Status
|
||||
|
||||
```bash
|
||||
node dev/scripts/setup-db.js status
|
||||
```
|
||||
Reference in New Issue
Block a user