Skip to content

sheldonled/customer-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Customer Filter

CircleCI DUB CircleCI

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"}

Live Demo

How to build and Run this test

With Docker

  • 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/

With npm

  • run: npm install
  • run: npm run build
  • run: npm start
  • Go To: localhost:3000/

About

Filtering customers by distance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published