Prepared in response to a confidential challenge prompt.
- Clone this repo into any directory and enter the directory
composer install
touch database/database.sqlite
- Run
php artisan migrate
to setup the database (this challenge uses sqlite) - Run
php artisan serve
to run a test instance of the app.
./vendor/bin/phpunit
- Simply visit http://127.0.0.1:8000/ and use the web interface.
- Otherwise go ahead and use the JSON API at http://127.0.0.1/difference/$n where $n is an integer from 1 to 100