Add local product catalogs for Amalfa and Ishtylish, enabling pre-exported JSON lookup in the scraper. Implemented product catalog loading and lookup functionality in the backend, along with a script for exporting product data from Shopify to local JSON files.
Refactor Shopify product scraping to improve image handling and data enrichment. Introduced functions for image URL extraction and product image setting. Updated scraping logic to fetch data from Shopify API endpoints and enrich product details accordingly.
- Updated auth.py to load and save users from/to MongoDB instead of a JSON file.
- Refactored gallery.py to manage gallery entries in MongoDB, removing local file dependencies.
- Introduced mongo.py for MongoDB connection handling and index management.
- Removed obsolete JSON data files for users and gallery entries.
- Updated create_user.py to create users directly in MongoDB.
This change enhances data persistence and scalability by leveraging MongoDB.