Skip to content

Quick Start

Get PokéDex Scanner running in under five minutes.

Prerequisites

1. Clone and install

git clone https://github.com/pacorreia/pokemon-card-scanner.git
cd pokemon-card-scanner
npm install

2. Set your AI provider

# GitHub Models (default) — no extra scopes needed
export AI_PROVIDER=github
export GITHUB_MODELS_TOKEN="ghp_..."

See AI Providers if you want to use OpenAI, Groq, Ollama, or another backend instead.

3. Start the app

npm run dev:full

This starts both the Node.js API server (port 8787) and the Vite dev server (port 5173) in a single command.

Open http://localhost:5173 in your browser.

Run servers separately

If you prefer separate terminals:

# Terminal 1 — API server
npm run dev:server

# Terminal 2 — Frontend
npm run dev

4. Download the card database

On first launch the app will display a banner asking you to download the Pokémon TCG database. Click Download and wait for it to complete (the app downloads the latest dataset files directly, and the total size may vary by release). This only needs to be done once per data directory.

5. Scan your first card

  1. Click Scan Card (camera icon).
  2. Allow camera access when prompted (or click Upload Image to use a file instead).
  3. Point your camera at a Pokémon card and capture the image.
  4. The AI will identify the card — confirm or adjust the result.
  5. The card is added to your collection. 🎉

Next Steps