Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I built a case compatibility checker covering 67 phone models (and open-sourced it)

Описание и применение

Создано приложение и CLI для проверки совместимости чехлов с 67 моделями телефонов, использующее единый JSON‑датасет и тесты для синхронизации.

Задача

Customers repeatedly ask which case fits a specific phone model, leading to a poor support experience.

Результат

The case compatibility checker covers 67 phone models, provides instant answers via web or CLI, and is open‑source under MIT. The shared dataset and sync test prevent drift between front‑ends.

Рабочий процесс

  • Identify common customer question
  • Design a tool with two front‑ends (web and CLI) sharing a single dataset
  • Create phones.json with model, brand, release year, magsafe flag, case types, screen protector, and guide URL
  • Write tests first: schema, CLI commands, packaging, web rendering, data sync
  • Implement CLI using argparse and data loader
  • Implement web app fetching phones.json via HTTP
  • Run tests locally and in GitHub Actions
  • Deploy web page as a single static HTML file
  • Publish CLI via pip and source on GitHub

Доказательства

I built a tool that just answers it.

Источник

Both front-ends read the same phones.json.

Источник

22 tests, and a GitHub Action runs them on every push.

Источник

  • Дата записи: 2026-10-12T20:41:08.141Z