# TCG Vault - Trading Card Collection Manager A comprehensive trading card database system with OCR scanning, AI-powered deck building, and real-time pricing. ## Features πŸƒ **Complete Card Database** - Store and organize your entire trading card collection - Track card conditions, quantities, and locations - Support for multiple TCG formats (Magic: The Gathering, PokΓ©mon, Yu-Gi-Oh!, etc.) πŸ“Έ **OCR Card Scanning** - Scan physical cards using your camera or smartphone - Automatic card recognition and data extraction - Bulk scanning support for efficient collection entry πŸ€– **AI-Powered Features** - Intelligent deck building recommendations based on your collection - Natural language queries for searching your database - Meta analysis and card synergy suggestions πŸ’° **Real-time Pricing** - Live price tracking from multiple sources - Collection valuation and price alerts - Historical price charts and market trends 🎨 **Modern Web Interface** - Responsive design for desktop and mobile - Drag-and-drop deck building - Advanced filtering and search capabilities ## Tech Stack - **Backend**: Python FastAPI with SQLAlchemy ORM - **Database**: SQLite (production-ready, can scale to PostgreSQL) - **Frontend**: React with TypeScript and Tailwind CSS - **OCR**: OpenCV + Tesseract with cloud vision APIs - **AI**: OpenAI GPT integration for intelligent features - **Pricing**: TCGPlayer and MTGJSON API integration ## Quick Start 1. **Backend Setup**: ```bash cd backend pip install -r requirements.txt uvicorn main:app --reload ``` 2. **Frontend Setup**: ```bash cd frontend npm install npm start ``` 3. **Database Initialize**: ```bash python backend/init_db.py ``` ## Project Structure ``` tcg-vault/ β”œβ”€β”€ backend/ # FastAPI backend β”‚ β”œβ”€β”€ app/ β”‚ β”‚ β”œβ”€β”€ models/ # SQLAlchemy models β”‚ β”‚ β”œβ”€β”€ routers/ # API route handlers β”‚ β”‚ β”œβ”€β”€ services/ # Business logic β”‚ β”‚ └── utils/ # Utilities (OCR, AI, pricing) β”‚ β”œβ”€β”€ tests/ # Backend tests β”‚ └── requirements.txt β”œβ”€β”€ frontend/ # React frontend β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ components/ β”‚ β”‚ β”œβ”€β”€ pages/ β”‚ β”‚ β”œβ”€β”€ services/ # API clients β”‚ β”‚ └── utils/ β”‚ └── package.json β”œβ”€β”€ docs/ # Documentation └── docker-compose.yml # Container orchestration ``` ## Development This project is designed for easy development and deployment. See the individual README files in `backend/` and `frontend/` for detailed setup instructions. ## Contributing 1. Fork the repository 2. Create a feature branch 3. Make your changes 4. Add tests 5. Submit a pull request ## License MIT License - feel free to use this project for your own collection management needs!