Customers API

A Laravel With Rest-Full Best Practices

Requirements

  • PHP >= 8.0
  • Composer
  • Laravel 9.x
  • Docker
  • Docker Compose

Installation

  1. Clone the repository

    https://github.com/usyeimar/backend-exam-api.git
  2. Install dependencies

    composer install
  3. Create a copy of the .env file

    cp .env.example .env
  4. Generate the application key

    php artisan key:generate
  5. Run the migrations and seeders

    php artisan migrate --seed
    
  6. Project comes with Passport include as the default authenticatin method. You should now install it using this command.

    php artisan passport:install
    
  7. Copy-paste the generated secrets and IDs into your .env file like so.

    PASSPORT_PERSONAL_ACCESS_CLIENT_ID=1
    PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET=mR7k7ITv4f7DJqkwtfEOythkUAsy4GJ622hPkxe6
    
    
  8. Run the application

    php artisan serve
  9. Run Imsomnia API

    Run in Insomnia}

Code Quality Tools

API Docs Tools

✅ Tests execution

    php artisan test