Skip to content

meddiecap/lorumapi

Repository files navigation

Laravel Logo

Lorem Ipsum API

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.

Getting Started with DDEV

This project uses DDEV for local development. DDEV provides a consistent development environment using Docker containers.

Prerequisites

Setup Instructions

  1. Clone this repository
  2. Navigate to the project directory
  3. Start DDEV:
    ddev start
    
  4. Install dependencies:
    ddev composer install
    ddev npm install
    
  5. Copy the environment file:
    ddev exec cp .env.example .env
    
  6. Generate application key:
    ddev exec php artisan key:generate
    
  7. Run migrations:
    ddev exec php artisan migrate
    
  8. Seed the database:
    ddev exec php artisan db:seed
    

Accessing the Application

Vite Assets

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.

About

Playing around with Laravel, creating a Faker API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors