A RESTful API that provides dummy data for movies, directors, and genres. This API is designed to help developers test their applications with realistic data.
This project uses DDEV for local development. DDEV provides a consistent development environment using Docker containers.
- Clone this repository
- Navigate to the project directory
- Start DDEV:
ddev start - Install dependencies:
ddev composer install ddev npm install - Copy the environment file:
ddev exec cp .env.example .env - Generate application key:
ddev exec php artisan key:generate - Run migrations:
ddev exec php artisan migrate - Seed the database:
ddev exec php artisan db:seed
This project uses Laravel Vite for asset compilation. When running with DDEV, Vite is automatically started and the assets are served from the correct URL.
The project is configured to use HTTPS for all assets, including Vite assets, to avoid CORS issues. The Vite server is exposed on port 5174 for HTTPS access, and the HMR (Hot Module Replacement) is configured to use the DDEV hostname instead of localhost.