A modern Laravel application for managing actor information submissions with AI-powered data extraction. Built with enterprise-grade architecture, Vue.js frontend, and comprehensive OpenAI integration.
Watch the application in action:
See the complete workflow from actor submission to AI-powered data extraction and management.
Note: If the video doesn't play automatically, click here to download and view
- π Actor Submission Form: Intuitive form for submitting actor information
- π€ AI-Powered Extraction: Automatically extracts structured data from descriptions using OpenAI
- π Actor Management: View, filter, and search through actor submissions
- π Detailed Views: Comprehensive actor profile pages
- π Real-time Statistics: Live dashboard with submission metrics
- Extracts: First Name, Last Name, Address, Height, Weight, Gender, Age
- Validation: Multi-layer validation with business rules
- Error Handling: Intelligent error messages for incomplete data
- Retry Mechanism: Automatic retry for failed processing
- π¨ Sheet-based Forms: Modern overlay forms using Shadcn/ui
- π± Responsive Design: Works seamlessly on all devices
- β‘ Real-time Updates: Live filtering and search capabilities
- π― Sample Data: One-click form population for testing
- PHP 8.2+
- Composer
- Node.js & NPM
- OpenAI API Key (already configured)
cd actor-management-system
composer install
npm install
npm run build
php artisan serve
The application will be available at http://localhost:8000
- Submit Actor Information: Click "Submit New Actor" button on the main page
- Browse Actors: View the table with filtering and search capabilities
- Actor Details: Click "View" on any actor to see complete information
- API Access: Use the REST API for programmatic access
GET /api/actors/prompt-validation # Get prompt validation message
POST /actors # Submit actor information
GET /actors # Get paginated actors list
GET /actors/{uuid} # Get specific actor details
POST /actors/{uuid}/retry # Retry failed processing
GET /api/health # API health check
GET /api/docs # API documentation
- Service Layer: Business logic with dependency injection
- Repository Pattern: Data access abstraction with caching
- DTOs: Type-safe data handling throughout the application
- Custom Validation: Multi-layer validation with business rules
- Event System: Decoupled event handling for processing workflows
- Vue.js Components: Modern, reactive user interface
- Shadcn/ui: Professional, accessible component library
- Responsive Design: Mobile-first approach with Tailwind CSS
- Real-time Updates: Dynamic content updates without page refresh
- OpenAI API: GPT-powered text analysis and data extraction
- Circuit Breaker: Resilient API calls with automatic failover
- Retry Logic: Intelligent retry mechanism for failed requests
- Caching: Response caching for improved performance
Comprehensive test suite included:
# Run all tests
php artisan test
# Run specific test suites
php artisan test --testsuite=Unit
php artisan test --testsuite=Feature
The application comes pre-configured for development:
- Database: SQLite (no additional setup required)
- OpenAI API: Pre-configured API key
- Caching: File-based caching for development
- Queue: Sync driver for immediate processing
For production deployment, consider:
- Database: MySQL or PostgreSQL
- Cache: Redis for improved performance
- Queue: Redis or database queue driver
- Environment: Proper
.env
configuration
actor-management-system/
βββ app/
β βββ Http/Controllers/ActorController.php # Main controller
β βββ Services/ # Business logic
β βββ Repositories/ # Data access
β βββ DTOs/ # Data transfer objects
β βββ Models/Actor.php # Actor model
βββ resources/
β βββ js/components/ # Vue.js components
β βββ views/ # Blade templates
βββ routes/
β βββ web.php # Web routes
β βββ api.php # API routes
βββ tests/ # Test suite
- Laravel 11: Modern PHP framework with latest features
- PHP 8.2+: Latest PHP version with improved performance
- SQLite: Lightweight database for development
- OpenAI API: GPT-powered text analysis
- Vue.js 3: Progressive JavaScript framework
- Shadcn/ui: Modern component library
- Tailwind CSS: Utility-first CSS framework
- Vite: Fast build tool and dev server
- PHPUnit: Comprehensive testing framework
- Laravel Sail: Docker development environment
- Composer: PHP dependency management
- NPM: Node.js package management
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is open source and available under the MIT License.
Built with β€οΈ using Laravel, Vue.js, and modern web technologies.