Skip to content

tugrulelmas/CustomerInviter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

CustomerInviter

Invites customers who are within a specific distance of the office for some food and drinks.

Usage

docker run tugrulelmas/customer-inviter [--OfficeLocation] [--CustomerPath] [--MaxDistance]

Options

--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.

Debug

  • 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
    

License

This project is licensed under the MIT License - see the LICENSE file for details

About

CustomerInviter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published