The idea of this application is to use Great-circle distance or orthodromic distance algorithm to filter, in a list of customers, all customers within a given distance, from a reference point.
The data consists in a text file, formatted with one customer per line, in a JSON structure, like this:
{"latitude": "53.0033946", "user_id": 39, "name": "Lisa Ahearn", "longitude": "-6.3877505"}
- build the image from the Dockerfile:
docker build -t sheldonled/customer-filter .
- run the image:
docker run --name customer_filter -d -p 3000:3000 sheldonled/customer-filter
- Go To: localhost:3000/
- run:
npm install
- run:
npm run build
- run:
npm start
- Go To: localhost:3000/