Skip to content

Latest commit

 

History

History
53 lines (49 loc) · 1018 Bytes

README.md

File metadata and controls

53 lines (49 loc) · 1018 Bytes

Clair Backend - Take Home Assignment

This Laravel 11 application is designed to :
- sync pay items from an external API
- store them in MongoDB
The job dispatch system :
- fetches pay items
- handles responses
- processes data using MongoDB collections

Environment

  • PHP v8.2.23
  • Laravel v11
  • MongoDB
  • Windows 10

Tech Stacks

  • PHP + Laravel
  • MongoDB
  • PHPUnit

How to setup

  • Clone the repository
      git clone git@github.com:dwaynewe/clair.git
      cd clair
  • Install dependencies
      composer install
  • MongoDB setup Follow this Guide to set up MongoDB in Laravel.
  • Run migrations
      php artisan migrate
  • Run
      php artisan serve
    This will host the project on http://localhost:8000

Testing the sync job

  • Dispatch the sync job
      php artisan dispatch:sync
  • Run unit test
      php artisan test