I'm using PHP 8.2, Laravel 10, Vite, Vue.js, Tailwind CSS and Intertia for Laravel
In order to get all of this running, you need to install.... A lot of stuff. For my local testing, php-fpm is running on port 9000, with nginx handing the requests. Vite is also running via "npx vite --host=0.0.0.0".
Getting this to run on your machine probably would be a bit of an undertaking, I did not make any Docker files for this, unfortunately.
Gambling.com Group Dev Code Test
The JSON-encoded affiliates.txt file attached contains a shortlist of affiliate contact records - one per line.
We want to invite any affiliate that lives within 100km of our Dublin office for some food and drinks using this text file as the input (without being altered).
##Task Write a program that will read the full list of affiliates from this txt file and output the name and IDs of matching affiliates within 100km, sorted by Affiliate ID (ascending).
You can use the first formula from this Wikipedia article to calculate distance. Don't forget, you'll need to convert degrees to radians.
The GPS coordinates for our Dublin office are 53.3340285, -6.2535495.
You can find the affiliate list in this repository called affiliates.txt.
Please don’t forget, your code should be production ready, clean and tested!
- Use of Laravel
- Basic HTML & CSS output
- Demonstrate understanding of MVC
- Use of TailwindCSS
- Use the original txt file as input
- Unit Tests
- Responsive Web Design (desktop and mobile)
- SEO best practice