Invites customers who are within a specific distance of the office for some food and drinks.
docker run tugrulelmas/customer-inviter [--OfficeLocation] [--CustomerPath] [--MaxDistance]
--OfficeLocation=<GPS_COORDINATES>
Default value is 53.339428,-6.257664
--CustomerPath=<URL_OR_PATH_OF_CUSTOMERS_TXT>
Default value is https://s3.amazonaws.com/intercom-take-home-test/customers.txt
You can pass the value of customers.txt on your local machine in debug mode.—e.g., /Downloads/customer.txt
There should be one customer per line and JSON lines formatted. Here is the sample line:
{"latitude": "52.986375", "user_id": 12, "name": "Christina McArdle", "longitude": "-6.043701"}
--MaxDistance=<MAX_DISTANCE>
Distance in km.
Default value is 100.
- Simply download or clone this repository.
- Be sure you have .net sdk on your local machine
- Go to src folder.
- Feel free to edit files with your best IDE.
- Run the following commands:
dotnet build dotnet test
This project is licensed under the MIT License - see the LICENSE file for details