from django.core.management.base import BaseCommand from case_studies.models import CaseStudyCategory, Client, CaseStudy, CaseStudyProcess from django.utils import timezone from datetime import timedelta class Command(BaseCommand): help = 'Populate database with sample enterprise case study data with Unsplash images' def handle(self, *args, **options): self.stdout.write(self.style.SUCCESS('Starting to populate enterprise case study data...')) # Clear existing data CaseStudyProcess.objects.all().delete() CaseStudy.objects.all().delete() Client.objects.all().delete() CaseStudyCategory.objects.all().delete() # Create Enterprise Categories categories_data = [ { 'name': 'Enterprise Software', 'slug': 'enterprise-software', 'description': 'Large-scale enterprise software solutions and digital transformation projects', 'display_order': 1 }, { 'name': 'Cloud Migration', 'slug': 'cloud-migration', 'description': 'Cloud infrastructure migration and modernization projects', 'display_order': 2 }, { 'name': 'AI & Machine Learning', 'slug': 'ai-machine-learning', 'description': 'Artificial intelligence and machine learning implementations', 'display_order': 3 }, { 'name': 'System Integration', 'slug': 'system-integration', 'description': 'Enterprise system integration and API development projects', 'display_order': 4 }, { 'name': 'Data Analytics', 'slug': 'data-analytics', 'description': 'Business intelligence and data analytics solutions', 'display_order': 5 }, { 'name': 'Digital Transformation', 'slug': 'digital-transformation', 'description': 'End-to-end digital transformation initiatives', 'display_order': 6 } ] categories = {} for cat_data in categories_data: category = CaseStudyCategory.objects.create(**cat_data) categories[category.slug] = category self.stdout.write(f'Created category: {category.name}') # Create Enterprise Clients clients_data = [ { 'name': 'Undisclosed Client', 'slug': 'undisclosed-client', 'description': 'Confidential enterprise client', 'website': '', 'logo_url': 'https://images.unsplash.com/photo-1560179707-f14e90ef3623?w=200&h=200&fit=crop' } ] clients = {} for client_data in clients_data: client = Client.objects.create(**client_data) clients[client.slug] = client self.stdout.write(f'Created client: {client.name}') # Create Enterprise Case Studies with Unsplash Images case_studies_data = [ { 'title': 'Enterprise Telemedicine Application Platform', 'slug': 'enterprise-telemedicine-application-platform', 'subtitle': 'Secure Healthcare Delivery with Java and React', 'excerpt': 'GNX Soft developed a comprehensive telemedicine platform enabling healthcare providers to deliver remote consultations, manage patient records, and facilitate virtual care delivery. Built with Java backend and React frontend, the platform serves thousands of healthcare professionals and patients nationwide.', 'description': '''

Executive Summary

GNX Soft developed a comprehensive telemedicine platform enabling healthcare providers to deliver remote consultations, manage patient records, and facilitate virtual care delivery. Built with Java backend and React frontend, the platform serves thousands of healthcare professionals and patients nationwide, ensuring HIPAA compliance and secure healthcare data management.

The Challenge

The client needed a scalable telemedicine solution that could handle high volumes of video consultations, integrate with existing Electronic Health Records (EHR) systems, and maintain strict HIPAA compliance. The platform required real-time video capabilities, secure messaging, prescription management, and comprehensive patient record management.

Our Solution

We architected a robust telemedicine platform with the following key features:

Key Results

Technology Stack

Java (Spring Boot), React, WebRTC, PostgreSQL, Redis, RabbitMQ, Docker, Kubernetes, AWS, HIPAA-compliant infrastructure

''', 'category': categories['enterprise-software'], 'client': clients['undisclosed-client'], 'thumbnail_url': 'https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=800&h=600&fit=crop', 'featured_image_url': 'https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1920&h=1080&fit=crop', 'poster_image_url': 'https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=1920&h=1080&fit=crop', 'project_image_url': 'https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=1200&h=800&fit=crop', 'project_overview': '''

GNX Soft developed a comprehensive telemedicine platform that revolutionizes remote healthcare delivery. Built with Java Spring Boot backend and React frontend, the solution enables healthcare providers to conduct secure video consultations, manage patient records, and deliver virtual care services while maintaining strict HIPAA compliance.

The platform features real-time video capabilities, secure messaging, prescription management, and seamless integration with major EHR systems. With support for thousands of concurrent consultations and multi-tenant architecture, the solution serves multiple healthcare organizations while ensuring data security and regulatory compliance.

''', 'site_map_content': '''

Platform Architecture

The telemedicine platform follows a modern microservices architecture:

''', 'meta_description': 'Enterprise telemedicine platform case study: Java and React solution for secure remote healthcare delivery.', 'meta_keywords': 'telemedicine, healthcare software, Java, React, HIPAA, remote consultations, EHR integration', 'featured': True, 'published': True, 'display_order': 1, 'days_ago': 5 }, { 'title': 'Enterprise Hotel Booking Platform', 'slug': 'enterprise-hotel-booking-platform', 'subtitle': 'Scalable Hospitality Management with FastAPI and Angular', 'excerpt': 'GNX Soft developed a comprehensive hotel booking and management platform that enables hotels to manage reservations, inventory, pricing, and guest services. Built with FastAPI backend and Angular frontend, the platform processes millions of bookings annually across thousands of properties worldwide.', 'description': '''

Executive Summary

GNX Soft developed a comprehensive hotel booking and management platform that enables hotels to manage reservations, inventory, pricing, and guest services. Built with FastAPI backend and Angular frontend, the platform processes millions of bookings annually across thousands of properties worldwide, providing real-time availability, dynamic pricing, and seamless payment processing.

The Challenge

The client required a high-performance booking platform capable of handling peak traffic during seasonal periods, managing complex inventory across multiple properties, implementing dynamic pricing strategies, and integrating with various payment gateways and third-party booking channels. The solution needed to support real-time availability updates, prevent overbooking, and provide comprehensive reporting and analytics.

Our Solution

We built a scalable hotel booking platform with the following capabilities:

Key Results

Technology Stack

FastAPI (Python), Angular, PostgreSQL, Redis, Celery, RabbitMQ, Elasticsearch, Docker, Kubernetes, AWS, Stripe, PayPal

''', 'category': categories['enterprise-software'], 'client': clients['undisclosed-client'], 'thumbnail_url': 'https://images.unsplash.com/photo-1566073771259-6a8506099945?w=800&h=600&fit=crop', 'featured_image_url': 'https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1920&h=1080&fit=crop', 'poster_image_url': 'https://images.unsplash.com/photo-1564501049412-61c2a3083791?w=1920&h=1080&fit=crop', 'project_image_url': 'https://images.unsplash.com/photo-1564501049412-61c2a3083791?w=1200&h=800&fit=crop', 'project_overview': '''

GNX Soft developed a comprehensive hotel booking and management platform that revolutionizes hospitality operations. Built with FastAPI backend and Angular frontend, the solution enables hotels to manage reservations, inventory, pricing, and guest services while processing millions of bookings annually across thousands of properties worldwide.

The platform features real-time availability management, dynamic pricing strategies, seamless channel manager integration, and comprehensive reporting capabilities. With support for high concurrent traffic and intelligent inventory management, the solution ensures optimal revenue generation while preventing overbooking and maintaining exceptional user experience.

''', 'site_map_content': '''

Platform Architecture

The hotel booking platform follows a modern microservices architecture:

''', 'meta_description': 'Enterprise hotel booking platform case study: FastAPI and Angular solution for scalable hospitality management.', 'meta_keywords': 'hotel booking, hospitality software, FastAPI, Angular, channel manager, dynamic pricing, booking engine', 'featured': True, 'published': True, 'display_order': 2, 'days_ago': 12 }, { 'title': 'Enterprise POS System with National Revenue Integration', 'slug': 'enterprise-pos-system-national-revenue-integration', 'subtitle': 'Comprehensive Retail Management with External System Integration', 'excerpt': 'GNX Soft developed an enterprise Point of Sale (POS) system integrated with national revenue authorities and multiple external systems. The solution handles millions of transactions daily across thousands of retail locations, ensuring compliance with tax regulations and seamless integration with payment processors, inventory systems, and government reporting platforms.', 'description': '''

Executive Summary

GNX Soft developed an enterprise Point of Sale (POS) system integrated with national revenue authorities and multiple external systems. The solution handles millions of transactions daily across thousands of retail locations, ensuring compliance with tax regulations and seamless integration with payment processors, inventory systems, and government reporting platforms.

The Challenge

The client required a robust POS system that could integrate with national revenue authority systems for real-time tax reporting, connect with multiple payment gateways, synchronize with inventory management systems, and provide comprehensive reporting capabilities. The solution needed to handle high transaction volumes, ensure data security, maintain compliance with tax regulations, and support offline operations during network outages.

Our Solution

We built a comprehensive enterprise POS platform featuring:

Key Results

Technology Stack

Java (Spring Boot), React, PostgreSQL, Redis, RabbitMQ, REST APIs, SOAP, Docker, Kubernetes, AWS, Payment Gateway APIs, National Revenue Authority APIs

''', 'category': categories['system-integration'], 'client': clients['undisclosed-client'], 'thumbnail_url': 'https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800&h=600&fit=crop', 'featured_image_url': 'https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=1920&h=1080&fit=crop', 'poster_image_url': 'https://images.unsplash.com/photo-1556740758-90de374c12ad?w=1920&h=1080&fit=crop', 'project_image_url': 'https://images.unsplash.com/photo-1556740758-90de374c12ad?w=1200&h=800&fit=crop', 'project_overview': '''

GNX Soft developed an enterprise Point of Sale (POS) system that revolutionizes retail operations through seamless integration with national revenue authorities and multiple external systems. The solution processes millions of transactions daily across thousands of retail locations, ensuring real-time tax compliance, secure payment processing, and comprehensive business intelligence.

Our platform features robust offline capabilities, ensuring business continuity during network outages. The system integrates with payment processors, inventory management systems, customer relationship management platforms, and government reporting systems, providing a unified solution for modern retail operations.

''', 'site_map_content': '''

System Architecture

The enterprise POS system follows a distributed architecture with comprehensive integration capabilities:

''', 'meta_description': 'Enterprise POS system case study: National revenue integration with external systems for retail management.', 'meta_keywords': 'POS system, point of sale, retail software, tax integration, payment processing, enterprise software', 'featured': True, 'published': True, 'display_order': 3, 'days_ago': 20 }, { 'title': 'Enterprise Cloud Infrastructure Migration', 'slug': 'enterprise-cloud-infrastructure-migration', 'subtitle': 'Large-Scale Digital Transformation Initiative', 'excerpt': 'GNX Soft executed a comprehensive cloud infrastructure migration for a major enterprise, migrating 1000+ applications and services from legacy on-premises infrastructure to a modern cloud-native architecture. The project involved zero-downtime migration strategies, containerization, and complete infrastructure modernization.', 'description': '''

Executive Summary

GNX Soft executed a comprehensive cloud infrastructure migration for a major enterprise, migrating 1000+ applications and services from legacy on-premises infrastructure to a modern cloud-native architecture. The project involved zero-downtime migration strategies, containerization, and complete infrastructure modernization across multiple business units.

The Challenge

The client operated a complex legacy infrastructure with thousands of applications running on outdated hardware and software. They needed to modernize their entire IT landscape while maintaining business continuity, ensuring security compliance, and achieving significant cost reductions. The migration required careful planning to avoid service disruptions and ensure seamless transition.

Our Solution

We implemented a comprehensive cloud migration strategy including:

Key Results

Technology Stack

Docker, Kubernetes, AWS, Azure, Terraform, Ansible, Jenkins, GitLab CI/CD, Prometheus, Grafana, ELK Stack, CloudWatch

''', 'category': categories['cloud-migration'], 'client': clients['undisclosed-client'], 'thumbnail_url': 'https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=800&h=600&fit=crop', 'featured_image_url': 'https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop', 'poster_image_url': 'https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&h=1080&fit=crop', 'project_image_url': 'https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1200&h=800&fit=crop', 'project_overview': '''

GNX Soft executed a comprehensive cloud infrastructure migration that transformed the entire IT landscape of a major enterprise. The project successfully migrated 1000+ applications and services from legacy on-premises infrastructure to a modern cloud-native architecture, achieving zero downtime and significant cost savings.

Our team implemented containerization strategies, microservices architecture, and automated deployment pipelines to ensure scalability, reliability, and operational efficiency. The migration included comprehensive security hardening, compliance validation, and disaster recovery solutions, ensuring business continuity and regulatory compliance.

''', 'site_map_content': '''

Migration Architecture

The cloud migration followed a structured, phased approach:

''', 'meta_description': 'Enterprise cloud migration case study: Zero-downtime migration of 1000+ applications to cloud-native architecture.', 'meta_keywords': 'cloud migration, digital transformation, containerization, Kubernetes, microservices, enterprise infrastructure', 'featured': False, 'published': True, 'display_order': 4, 'days_ago': 30 }, { 'title': 'Enterprise Financial Management System', 'slug': 'enterprise-financial-management-system', 'subtitle': 'Comprehensive Financial Operations Platform', 'excerpt': 'GNX Soft developed an enterprise financial management system that handles complex accounting, financial reporting, budgeting, and compliance requirements for large organizations. The platform integrates with banking systems, payment processors, and regulatory reporting platforms, ensuring real-time financial visibility and compliance.', 'description': '''

Executive Summary

GNX Soft developed an enterprise financial management system that handles complex accounting, financial reporting, budgeting, and compliance requirements for large organizations. The platform integrates with banking systems, payment processors, and regulatory reporting platforms, ensuring real-time financial visibility and compliance with international accounting standards.

The Challenge

The client required a comprehensive financial management solution that could handle multi-currency transactions, complex accounting rules, regulatory compliance, and real-time financial reporting. The system needed to integrate with multiple banking systems, support various payment methods, and provide detailed audit trails for compliance purposes.

Our Solution

We built a robust financial management platform featuring:

Key Results

Technology Stack

Java (Spring Boot), React, PostgreSQL, Redis, RabbitMQ, REST APIs, Docker, Kubernetes, AWS, Banking APIs, Payment Gateway APIs

''', 'category': categories['enterprise-software'], 'client': clients['undisclosed-client'], 'thumbnail_url': 'https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=800&h=600&fit=crop', 'featured_image_url': 'https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920&h=1080&fit=crop', 'poster_image_url': 'https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&h=1080&fit=crop', 'project_image_url': 'https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1200&h=800&fit=crop', 'project_overview': '''

GNX Soft developed an enterprise financial management system that revolutionizes financial operations for large organizations. The platform handles complex accounting, financial reporting, budgeting, and compliance requirements while integrating seamlessly with banking systems, payment processors, and regulatory reporting platforms.

Our solution provides real-time financial visibility, automated reconciliation, and comprehensive compliance tracking. The system supports multi-currency transactions, complex accounting rules, and provides detailed audit trails, ensuring regulatory compliance and operational efficiency.

''', 'site_map_content': '''

System Architecture

The financial management system follows a modular architecture:

''', 'meta_description': 'Enterprise financial management system: Comprehensive financial operations platform with banking integration.', 'meta_keywords': 'financial management, accounting software, ERP, financial reporting, compliance, enterprise software', 'featured': False, 'published': True, 'display_order': 5, 'days_ago': 45 }, { 'title': 'Enterprise Customer Relationship Management Platform', 'slug': 'enterprise-customer-relationship-management-platform', 'subtitle': 'Unified Customer Engagement Solution', 'excerpt': 'GNX Soft developed a comprehensive Customer Relationship Management (CRM) platform that unifies customer data, sales processes, marketing automation, and customer service across all touchpoints. The solution provides 360-degree customer view, predictive analytics, and automated workflows to enhance customer engagement and drive revenue growth.', 'description': '''

Executive Summary

GNX Soft developed a comprehensive Customer Relationship Management (CRM) platform that unifies customer data, sales processes, marketing automation, and customer service across all touchpoints. The solution provides 360-degree customer view, predictive analytics, and automated workflows to enhance customer engagement and drive revenue growth.

The Challenge

The client needed a unified CRM solution that could consolidate customer data from multiple sources, automate sales and marketing processes, provide comprehensive analytics, and integrate with various business systems. The platform needed to support large sales teams, handle complex customer journeys, and provide actionable insights for business growth.

Our Solution

We built an enterprise CRM platform with comprehensive capabilities:

Key Results

Technology Stack

Python (Django), React, PostgreSQL, Redis, Celery, RabbitMQ, Elasticsearch, Docker, Kubernetes, AWS, Machine Learning APIs

''', 'category': categories['digital-transformation'], 'client': clients['undisclosed-client'], 'thumbnail_url': 'https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=800&h=600&fit=crop', 'featured_image_url': 'https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920&h=1080&fit=crop', 'poster_image_url': 'https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&h=1080&fit=crop', 'project_image_url': 'https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1200&h=800&fit=crop', 'project_overview': '''

GNX Soft developed a comprehensive Customer Relationship Management (CRM) platform that transforms how organizations engage with customers. The solution unifies customer data, sales processes, marketing automation, and customer service, providing a 360-degree view of customer interactions and enabling data-driven decision making.

Our platform features predictive analytics, automated workflows, and seamless integrations with business systems. The solution enhances sales productivity, improves lead conversion, and enables personalized customer experiences through AI-powered insights and automation.

''', 'site_map_content': '''

Platform Architecture

The CRM platform consists of integrated modules:

''', 'meta_description': 'Enterprise CRM platform: Unified customer engagement solution with predictive analytics and automation.', 'meta_keywords': 'CRM, customer relationship management, sales automation, marketing automation, customer engagement', 'featured': False, 'published': True, 'display_order': 6, 'days_ago': 60 } ] # Process steps templates process_templates = [ [ {'step_number': 1, 'title': 'Requirements Analysis', 'description': 'Understanding healthcare workflows, HIPAA compliance requirements, and telemedicine needs.'}, {'step_number': 2, 'title': 'System Design', 'description': 'Designing HIPAA-compliant architecture with Java Spring Boot backend and React frontend.'}, {'step_number': 3, 'title': 'Core Development', 'description': 'Building video consultation engine, patient portal, and appointment management system.'}, {'step_number': 4, 'title': 'Integration', 'description': 'Integrating with EHR systems, payment gateways, and pharmacy services.'}, {'step_number': 5, 'title': 'Testing & Certification', 'description': 'Rigorous testing, HIPAA compliance validation, and production deployment.'} ], [ {'step_number': 1, 'title': 'Architecture Design', 'description': 'Designing scalable microservices architecture with FastAPI backend and Angular frontend.'}, {'step_number': 2, 'title': 'Core Development', 'description': 'Building booking engine, inventory management, and pricing engine.'}, {'step_number': 3, 'title': 'Integration', 'description': 'Integrating with channel managers, payment gateways, and third-party booking platforms.'}, {'step_number': 4, 'title': 'Advanced Features', 'description': 'Implementing dynamic pricing, analytics dashboard, and mobile optimization.'}, {'step_number': 5, 'title': 'Performance Optimization', 'description': 'Optimizing for high traffic, real-time synchronization, and scalability.'} ], [ {'step_number': 1, 'title': 'Requirements Gathering', 'description': 'Understanding retail operations, tax compliance requirements, and integration needs.'}, {'step_number': 2, 'title': 'System Design', 'description': 'Designing POS architecture with Java backend, React frontend, and external system integrations.'}, {'step_number': 3, 'title': 'Core Development', 'description': 'Building transaction processing, inventory management, and payment processing modules.'}, {'step_number': 4, 'title': 'External Integration', 'description': 'Integrating with national revenue authority, payment gateways, and inventory systems.'}, {'step_number': 5, 'title': 'Testing & Deployment', 'description': 'Comprehensive testing, compliance validation, and multi-location deployment.'} ], [ {'step_number': 1, 'title': 'Infrastructure Assessment', 'description': 'Comprehensive evaluation of existing infrastructure, applications, and dependencies.'}, {'step_number': 2, 'title': 'Migration Planning', 'description': 'Detailed migration strategy, containerization plan, and zero-downtime approach.'}, {'step_number': 3, 'title': 'Containerization', 'description': 'Application containerization using Docker and Kubernetes orchestration setup.'}, {'step_number': 4, 'title': 'Phased Migration', 'description': 'Systematic migration of applications with blue-green deployment strategies.'}, {'step_number': 5, 'title': 'Optimization & Operations', 'description': 'Performance tuning, cost optimization, and 24/7 monitoring setup.'} ], [ {'step_number': 1, 'title': 'Requirements Analysis', 'description': 'Understanding financial operations, accounting standards, and compliance requirements.'}, {'step_number': 2, 'title': 'System Design', 'description': 'Designing financial management architecture with Java backend and React frontend.'}, {'step_number': 3, 'title': 'Core Development', 'description': 'Building accounting modules, financial reporting, and budget management systems.'}, {'step_number': 4, 'title': 'Integration', 'description': 'Integrating with banking systems, payment processors, and regulatory reporting platforms.'}, {'step_number': 5, 'title': 'Testing & Compliance', 'description': 'Rigorous testing, compliance validation, and production deployment.'} ], [ {'step_number': 1, 'title': 'Requirements Gathering', 'description': 'Understanding customer engagement needs, sales processes, and integration requirements.'}, {'step_number': 2, 'title': 'System Design', 'description': 'Designing CRM architecture with Python Django backend and React frontend.'}, {'step_number': 3, 'title': 'Core Development', 'description': 'Building customer data hub, sales pipeline, and marketing automation modules.'}, {'step_number': 4, 'title': 'Advanced Features', 'description': 'Implementing predictive analytics, workflow automation, and mobile applications.'}, {'step_number': 5, 'title': 'Integration & Deployment', 'description': 'Integrating with business systems, comprehensive testing, and production rollout.'} ] ] # Create case studies created_case_studies = [] for idx, cs_data in enumerate(case_studies_data): days_ago = cs_data.pop('days_ago') case_study = CaseStudy.objects.create( **cs_data, published_at=timezone.now() - timedelta(days=days_ago) ) created_case_studies.append(case_study) # Add process steps processes = process_templates[idx % len(process_templates)] for process_data in processes: CaseStudyProcess.objects.create( case_study=case_study, **process_data ) self.stdout.write(f'Created case study: {case_study.title}') self.stdout.write(self.style.SUCCESS('\nSuccessfully populated enterprise case study data!')) self.stdout.write(f'Created {CaseStudyCategory.objects.count()} categories') self.stdout.write(f'Created {Client.objects.count()} clients') self.stdout.write(f'Created {CaseStudy.objects.count()} case studies') self.stdout.write(f'Created {CaseStudyProcess.objects.count()} process steps')