System Requirements
Before installing MediaStream, ensure your system meets the following requirements:- PHP: ^8.2 or higher
- Node.js: 18.x or higher
- Composer: 2.x or higher
- Database: SQLite (default) or MySQL/PostgreSQL
Installation Methods
Choose your preferred installation method:- Quick Setup (Recommended)
- Manual Setup
Run the setup script
MediaStream includes a convenient setup script that handles all installation steps:This command will:
- Install PHP dependencies via Composer
- Copy
.env.exampleto.envif it doesn’t exist - Generate application key
- Run database migrations
- Install Node.js dependencies
- Build frontend assets
The development server runs all services concurrently. Press
Ctrl+C to stop all services at once.Development Dependencies
The following development tools are included:Backend
laravel/sail: ^1.41 - Docker development environmentlaravel/pail: ^1.2.2 - Real-time log viewerlaravel/pint: ^1.24 - PHP code style fixerpestphp/pest: ^3.8 - Testing frameworkmockery/mockery: ^1.6 - Mocking library
Frontend
@vitejs/plugin-vue: ^6.0.0 - Vue 3 plugin for Vitetypescript: ^5.2.2 - TypeScript supporteslint: ^9.17.0 - JavaScript linterprettier: ^3.4.2 - Code formattertailwindcss: ^4.1.1 - Utility-first CSS framework
Optional: Docker Setup
MediaStream includes Laravel Sail for Docker-based development:Server-Side Rendering (Optional)
MediaStream supports SSR with Inertia.js:Verification
Verify your installation is successful:- Visit
http://localhost:8000in your browser - You should see the MediaStream welcome page
- The registration and login links should be visible
If you see the welcome page, congratulations! MediaStream is now installed.
Troubleshooting
Permission errors
Permission errors
Ensure the storage and cache directories are writable:
Database connection errors
Database connection errors
Verify your database file exists:If using MySQL/PostgreSQL, check your
.env database credentials.Node.js build errors
Node.js build errors
Clear the npm cache and reinstall:
Port already in use
Port already in use
If port 8000 is taken, specify a different port:
Next Steps
Quick Start
Learn how to create your first series and upload media
Configuration
Configure environment variables and application settings