The script index.js
uses a local api to perform various operations on a set of cities. Your task is to implement an api so that the script runs successfully all the way to the end.
Run npm install
and npm run start
to start the script.
Your api can load the required data from here.
In the distance calculations you can assume the earth is a perfect sphere and has a radius is 6371 km.
docker-compose build
docker-compose up
- Go to
http://localhost/
in your browser
- I started by making an MVP server in Typescript and Node that solved the challenge. Nothing too exciting.
- Containers are important for the Danish economy, so I added a Dockerfile and docker-compose.yml to make it easy to deploy.
- In case there is a section of the target market that thinks
curl
is an hair style, I added a web interface. Using Angular, because I heard some people like it.