AI-driven YouTube video generator that creates viral content automatically - from script to upload in minutes. Modern SaaS platform built with Laravel, Vue.js, n8n and Docker, featuring intelligent automation and seamless YouTube integration.
add the env.ex and README files
Mohamed El aassal1633480c90e0
diff --git a/.env.example b/.env.exampleindex 35db1dd..10da9b6 100644--- a/.env.example+++ b/.env.example@@ -1,8 +1,8 @@APP_NAME=LaravelAPP_ENV=local-APP_KEY=+APP_KEY=base64:2IjRBeuGrfaqo6LNy+aPhfj+s254HOGi+XKrjmuwvoI=APP_DEBUG=true-APP_URL=http://localhost+APP_URL=http://localhost:8000APP_LOCALE=enAPP_FALLBACK_LOCALE=en@@ -20,14 +20,14 @@ LOG_STACK=singleLOG_DEPRECATIONS_CHANNEL=nullLOG_LEVEL=debug-DB_CONNECTION=sqlite-# DB_HOST=127.0.0.1-# DB_PORT=3306-# DB_DATABASE=laravel-# DB_USERNAME=root-# DB_PASSWORD=+DB_CONNECTION=mysql+DB_HOST=db+DB_PORT=3306+DB_DATABASE=DB_NAME+DB_USERNAME=root+DB_PASSWORD=-SESSION_DRIVER=database+SESSION_DRIVER=redisSESSION_LIFETIME=120SESSION_ENCRYPT=falseSESSION_PATH=/@@ -35,15 +35,15 @@ SESSION_DOMAIN=nullBROADCAST_CONNECTION=logFILESYSTEM_DISK=local-QUEUE_CONNECTION=database+QUEUE_CONNECTION=redis-CACHE_STORE=database+CACHE_STORE=redis# CACHE_PREFIX=MEMCACHED_HOST=127.0.0.1REDIS_CLIENT=phpredis-REDIS_HOST=127.0.0.1+REDIS_HOST=redisREDIS_PASSWORD=nullREDIS_PORT=6379@@ -63,3 +63,18 @@ AWS_BUCKET=AWS_USE_PATH_STYLE_ENDPOINT=falseVITE_APP_NAME="${APP_NAME}"++# Google OAuth Configuration+GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID+GOOGLE_CLIENT_SECRET=YOUR_GOOGLE_CLIENT_SECRET+GOOGLE_REDIRECT_URI="${APP_URL}/auth/google/callback"++GEMINI_API_KEY=YOUR_GEMINI_API_KEY+PIXABAY_API_KEY=YOUR_PIXABAY_API_KEY+UNSPLASH_ACCESS_KEY=YOUR_UNSPLASH_ACCESS_KEY+UNSPLASH_SECRET_KEY=YOUR_UNSPLASH_SECRET_KEY++# N8n Configuration example+N8N_BASIC_AUTH_ACTIVE=true+N8N_BASIC_AUTH_USER=admin+N8N_BASIC_AUTH_PASSWORD=password123diff --git a/README.md b/README.mdindex 75c347a..ebdfb26 100644--- a/README.md+++ b/README.md@@ -1,61 +1,360 @@-<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>+# 🎬 VideoGenius AI - YouTube Video Generator SaaS-<p align="center">-<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>-<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>-<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>-<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>-</p>-## About Laravel-Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:+++++-- [Simple, fast routing engine](https://laravel.com/docs/routing).-- [Powerful dependency injection container](https://laravel.com/docs/container).-- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.-- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).-- Database agnostic [schema migrations](https://laravel.com/docs/migrations).-- [Robust background job processing](https://laravel.com/docs/queues).-- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).+**Transform any topic into viral YouTube content with the power of AI**-Laravel is accessible, powerful, and provides tools required for large, robust applications.+[🚀 Live Demo](#demo) • [📖 Documentation](#documentation) • [🛠️ Installation](#installation) • [🤝 Contributing](#contributing)-## Learning Laravel+</div>-Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.+----You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.+## 🌟 Overview-If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.+VideoGenius AI is a revolutionary SaaS platform that automates the entire YouTube video creation process. From script generation to final upload, our AI-powered system handles everything, enabling creators to scale from weekly uploads to daily content production effortlessly.-## Laravel Sponsors+### ✨ Key Features-We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).+- 🤖 **AI Script Generation** - GPT-4 powered viral script creation+- 🎨 **Smart Visual Selection** - Automatic stock footage and image selection+- 🗣️ **Professional Voiceover** - Natural AI voice synthesis with 40+ voices+- 🔄 **Autopilot Mode** - 24/7 automated video creation and scheduling+- 📺 **Direct YouTube Upload** - Seamless channel integration with OAuth 2.0+- 📊 **Advanced Analytics** - Real-time performance tracking and insights+- 🎯 **SEO Optimization** - AI-generated titles, descriptions, and tags+- 🌐 **Multi-language Support** - Create content in multiple languages-### Premium Partners+## 🏗️ Architecture-- **[Vehikl](https://vehikl.com)**-- **[Tighten Co.](https://tighten.co)**-- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**-- **[64 Robots](https://64robots.com)**-- **[Curotec](https://www.curotec.com/services/technologies/laravel)**-- **[DevSquad](https://devsquad.com/hire-laravel-developers)**-- **[Redberry](https://redberry.international/laravel-development)**-- **[Active Logic](https://activelogic.com)**+### Tech Stack-## Contributing+**Backend:**+- 🐘 **Laravel 12** - Modern PHP framework with elegant syntax+- 🔄 **Inertia.js** - SPA experience without API complexity+- 🐳 **Docker Compose** - Containerized microservices architecture+- 🗄️ **MySQL 8.0** - Robust relational database+- ⚡ **Redis** - High-performance caching and session storage+- 🔧 **n8n** - Workflow automation and AI orchestration-Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).+**Frontend:**+- 💚 **Vue.js 3** - Progressive JavaScript framework+- 🎨 **Tailwind CSS** - Utility-first CSS framework+- ✨ **Custom Animations** - Glassmorphism and particle effects+- 📱 **Responsive Design** - Mobile-first approach+- ⚡ **Vite** - Lightning-fast build tool-## Code of Conduct+**AI & APIs:**+- 🧠 **OpenAI GPT-4 or Gemini** - Advanced script generation+- 🎤 **Text-to-Speech** - Multiple TTS providers+- 📸 **Pexels API** - High-quality stock media+- 📺 **YouTube API v3** - Direct channel integration+- 🔐 **Google OAuth 2.0** - Secure authentication-In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).+### System Architecture-## Security Vulnerabilities+```+┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐+│ Frontend │ │ Backend │ │ AI Services │+│ (Vue.js) │◄──►│ (Laravel) │◄──►│ (GPT-4, TTS) │+└─────────────────┘ └─────────────────┘ └─────────────────┘+ │ │ │+ ▼ ▼ ▼+┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐+│ Web Server │ │ Database │ │ Media APIs │+│ (Nginx) │ │ (MySQL) │ │ (Pexels) │+└─────────────────┘ └─────────────────┘ └─────────────────┘+ │ │ │+ └───────────────────────┼───────────────────────┘+ ▼+ ┌─────────────────┐+ │ Docker │+ │ Compose │+ └─────────────────┘+```-If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [[email protected]](mailto:[email protected]). All security vulnerabilities will be promptly addressed.+## 🚀 Installation-## License+### Prerequisites-The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).+- Docker and Docker Compose+- Git+- Google Developer Account (for YouTube API)+- OpenAI API Key++### Quick Start++1. **Clone the repository**+```bash+git clone https://github.com/MohamedElaassal/youtubeVideoGenerator.git+cd youtubeVideoGenerator+```++2. **Environment Configuration**+```bash+cp .env.example .env+```++3. **Configure your environment variables**+```env+# Database+DB_CONNECTION=mysql+DB_HOST=db+DB_PORT=3306+DB_DATABASE=youtube_generator+DB_USERNAME=root+DB_PASSWORD=secret++# Google OAuth & YouTube API+GOOGLE_CLIENT_ID=your_google_client_id+GOOGLE_CLIENT_SECRET=your_google_client_secret+GOOGLE_REDIRECT_URI=http://localhost:8000/auth/google/callback++# AI Services+OPENAI_API_KEY=your_openai_api_key+PEXELS_API_KEY=your_pexels_api_key++# TTS Configuration+TTS_SERVICE=gTTS+TTS_LANGUAGE=en+```++4. **Build and start the application**+```bash+docker-compose up -d --build+```++5. **Install dependencies and setup**+```bash+# Install PHP dependencies+docker-compose exec app composer install++# Install Node.js dependencies+docker-compose exec app npm install --legacy-peer-deps++# Generate application key+docker-compose exec app php artisan key:generate++# Run database migrations+docker-compose exec app php artisan migrate++# Build frontend assets+docker-compose exec app npm run build+```++6. **Access the application**+- **Frontend:** http://localhost:8000+- **n8n Workflow:** http://localhost:5678+- **Database:** localhost:3306++## 📁 Project Structure++```+youtubeVideoGenerator/+├── app/+│ ├── Http/Controllers/ # Application controllers+│ ├── Models/ # Eloquent models+│ ├── Services/ # Business logic services+│ └── Jobs/ # Queue jobs for video processing+├── resources/+│ ├── js/+│ │ ├── Pages/ # Vue.js pages+│ │ ├── Components/ # Reusable Vue components+│ │ └── Layouts/ # Application layouts+│ └── css/ # Stylesheets with animations+├── scripts/+│ ├── video_generator.py # Python video assembly+│ ├── tts_generator.py # Text-to-speech generation+│ └── requirements.txt # Python dependencies+├── docker-compose.yml # Container orchestration+├── Dockerfile # Application container+└── README.md # This file+```++## 🎯 Usage++### Basic Workflow++1. **Sign in with Google** - Connect your YouTube channel+2. **Create a Video** - Provide a topic or keyword+3. **AI Processing** - Watch as AI generates script, selects visuals, and creates voiceover+4. **Review & Edit** - Make any necessary adjustments+5. **Publish** - Upload directly to your YouTube channel++### Autopilot Mode++1. **Configure Channel Settings** - Set your niche and preferences+2. **Enable Autopilot** - Choose your publishing schedule+3. **Relax** - AI creates and publishes videos automatically++### Advanced Features++- **Bulk Video Creation** - Generate multiple videos from a list of topics+- **Custom Voice Selection** - Choose from 40+ AI voices+- **Brand Customization** - Add your logo and brand colors+- **Analytics Dashboard** - Track performance across all videos++## 🔧 Configuration++### Google OAuth Setup++1. Go to [Google Cloud Console](https://console.cloud.google.com/)+2. Create a new project or select existing+3. Enable YouTube Data API v3+4. Create OAuth 2.0 credentials+5. Add authorized redirect URIs:+ - `http://localhost:8000/auth/google/callback`+ - `https://yourdomain.com/auth/google/callback`++### AI Service Configuration++#### Gemini or OpenAI API+- Sign up at [OpenAI Platform](https://platform.openai.com/)+- Generate API key+- Add to `.env` file++#### Pexels API+- Register at [Pexels](https://www.pexels.com/api/)+- Get free API key (50,000 requests/month)+- Add to `.env` file++## 🚀 Deployment++### Production Deployment++1. **Prepare production environment**+```bash+# Set production environment+APP_ENV=production+APP_DEBUG=false+```++2. **Optimize for production**+```bash+docker-compose exec app php artisan config:cache+docker-compose exec app php artisan route:cache+docker-compose exec app php artisan view:cache+docker-compose exec app npm run build+```++3. **SSL Configuration** (recommended)+- Use Let's Encrypt with Nginx+- Update Google OAuth redirect URIs++### Scaling++- **Horizontal Scaling**: Use Docker Swarm or Kubernetes+- **Database**: Consider read replicas for high traffic+- **Queue Workers**: Scale queue containers based on load+- **CDN**: Implement for static assets and generated videos++## 🔍 API Documentation++### Example for the Video Creation Endpoint++```http+POST /api/videos+Content-Type: application/json+Authorization: Bearer {token}++{+ "topic": "How to learn programming",+ "style": "educational",+ "duration": "5-10 minutes",+ "voice": "en-US-female-1"+}+```++### Response++```json+{+ "id": "uuid",+ "status": "processing",+ "topic": "How to learn programming",+ "estimated_completion": "2024-01-01T12:00:00Z",+ "progress": 0+}+```++## 🧪 Testing++```bash+# Run PHP tests+docker-compose exec app php artisan test++# Run JavaScript tests+docker-compose exec app npm run test++# Run integration tests+docker-compose exec app php artisan test --testsuite=Feature+```++## 🤝 Contributing++We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.++### Development Setup++1. Fork the repository+2. Create a feature branch+3. Make your changes+4. Add tests for new functionality+5. Submit a pull request++### Code Style++- **PHP**: Follow PSR-12 standards+- **JavaScript**: Use ESLint configuration+- **CSS**: Follow BEM methodology+- **Commits**: Use conventional commit messages++## 📊 Performance++### Benchmarks++- **Video Generation Time**: 2-5 minutes average+- **Concurrent Users**: 1000+ supported+- **API Response Time**: <200ms average+- **Database Queries**: Optimized with caching++### Optimization Features++- **Redis Caching**: Session and application cache+- **Queue Processing**: Background video generation+- **Database Indexing**: Optimized queries+- **CDN Ready**: Static asset optimization++## 🔒 Security++- **OAuth 2.0**: Secure Google authentication+- **CSRF Protection**: Laravel built-in protection+- **Rate Limiting**: API endpoint protection+- **Input Validation**: Comprehensive sanitization+- **Encrypted Secrets**: Secure token storage++++## 🙏 Acknowledgments++- **Laravel Community** - For the amazing framework+- **Vue.js Team** - For the reactive frontend framework+- **OpenAI** - For GPT-4 API access+- **Pexels** - For high-quality stock media+- **Docker** - For containerization technology++---+++**Built with ❤️ by [Mohamed Elaassal](https://github.com/MohamedElaassal)**++⭐ Star this repository if you find it helpful!+++</div>