mantimon-tcg/backend
Cal Corum 934aa4c443 Add CardService and card data conversion pipeline
- Rename data/cards/ to data/raw/ for scraped data
- Add data/definitions/ as authoritative card data source
- Add convert_cards.py script to transform raw -> definitions
- Generate 378 card definitions (344 Pokemon, 24 Trainers, 10 Energy)
- Add CardService for loading and querying card definitions
  - In-memory indexes for fast lookups by type, set, pokemon_type
  - search() with multiple filter criteria
  - get_all_cards() for GameEngine integration
- Add SetInfo model for set metadata
- Update Attack model with damage_display field for variable damage
- Update CardDefinition with image_path, illustrator, flavor_text
- Add 45 tests (21 converter + 24 CardService)
- Update scraper output path to data/raw/

Card data is JSON-authoritative (no database) to support offline fork goal.
2026-01-27 14:16:40 -06:00
..
app Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
data Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
project_plans Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
references Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
scripts Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
tests Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
.env.example Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
.gitignore Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
.python-version Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
alembic.ini Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
docker-compose.yml Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
PROJECT_PLAN_MASTER.json Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
PROJECT_PLAN.json Complete LOW-001: Verify comprehensive docstring coverage 2026-01-26 14:55:03 -06:00
pyproject.toml Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
uv.lock Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00