Skip to content

dwaynewe/clair

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published