MichaelTech.net Technical Specification
Architecture Overview
- Headless CMS: WordPress
- Frontend: Gatsby.js (React-based static site generator)
- Database: MySQL (for WordPress backend)
- Hosting: Hostinger
Backend (WordPress)
Custom plugin: My Affiliate Product Manager
- Integrates with Amazon Product Advertising API
- Manages product import, updates, and affiliate link management
- Implements custom categorization logic
- Robust data validation and error correction:
- Implements advanced error handling for inconsistent API responses
- Utilizes regex and custom algorithms to extract and validate critical product information (e.g., model names, brands)
- Employs fallback mechanisms and data normalization techniques to ensure data integrity
- Custom categorization system to handle non-standard or missing category information
- Automated data cleaning and standardization processes
- Content management for blog posts and static pages
- GraphQL API endpoint for Gatsby frontend
Frontend (Gatsby.js)
- React-based components
- Static page generation for improved performance
- Rebuilding site for data updates (e.g., price updates, holiday sales)
- Responsive design using CSS-in-JS (Emotion)
- SEO optimization with react-helmet
Data Flow
- WordPress GraphQL API -> Data Fetching
- Data Validation and Cleaning (custom algorithms)
- AI-powered Content Generation
- Utilizes fetched product data to create unique, SEO-optimized content
- Generates product descriptions, deal highlights, and related content
- Gatsby Build Process
- Incorporates WordPress data and AI-generated content
- Creates static pages
- Static Pages Deployment
Key Features
- Product Catalog:
- Automated import from Amazon
- Custom categorization system
- Price history tracking
- Deal Pages:
- Dynamically generated content
- Blog/News Section:
- WordPress-managed content
- Integration with product deals
- Search Functionality:
- Custom, real-time search implementation
- Client-side filtering for instant results without page reloads
- Comprehensive search across multiple data points
- Memoized search function for optimal performance
- Case-insensitive matching for improved user experience
- Unified search across different data sources
- User Interface:
- Responsive design
- Accessibility features
- Performance-optimized animations and transitions
Performance Optimizations
- Image optimization using Gatsby Image
- Code splitting and lazy loading
- CSS and JS minification
- CDN integration by Hostinger
SEO Enhancements
- Structured data implementation
- Automated sitemap generation
- Custom news sitemap generation for deal content
- Dynamic creation of news-sitemap.xml during build process
- Includes recently modified deals (within last 2 days)
- Implements proper XML escaping for content security
- Adheres to Google News sitemap guidelines
- Custom sitemap index creation, integrating both standard and news sitemaps
- Meta tag optimization
- Canonical URL management
Integrations
- Amazon Product Advertising API
- OpenAI API for content generation
- Google Analytics
Content Management
- AI-assisted content generation system
- Automated content update mechanism:
- Price tracking and history logging
- Dynamic deal status management (active/expired)
- Automated content revision based on:
- Changes in discount percentage
- Deal reactivation
- Seasonal/holiday shifts
- Real-time notices for expired deals
- Intelligent content refresh system to maintain relevance and accuracy
Security Measures
- WordPress is running locally
- API key management and secure storage
Monitoring and Analytics
- Performance monitoring, Chrome Dev tools Lighthouse and Pagespeed Insights
- Error tracking and logging
- User behavior analytics
Deployment and DevOps
- Manual, controlled deployment process
- Product management:
- Custom WordPress plugin for importing new products
- Automated product data updates for existing inventory
- Content management:
- Manual execution of content generation script for new or revised products
- Build process:
- Manual Gatsby build triggering
- Deployment:
- Manual upload of built site to hosting provider
- Version control with Git for codebase management