This public repository contains Backend Developer assessment project.
You are The Backend Guy, responsible for the Routes API ©. On a quiet afternoon, while sipping your favorite coffee, your phone starts ringing. Your manager is calling, the coffee break is over you think and answer the call. Your manager hesitately speaks: "Ten different vehicles that need urgent attention from our operation crew. One of the fastest field operators - you know the guy - is assigned for the job and he is already approaching the first point. Your goal is to direct the operator to complete all ten vehicles, helping him to find the nearest vehicle next." You put the phone down, crack your fingers.....
This repo contains a simple NodeJS Express application that responds to a GET request with the contents of data.json.
You may use http://registry.gitlab.com/martitech-public/backend-assessment:latest Docker Image for the Api or clone this repository and run barebones. You can also build the Dockerfile in the repository or just use data.json file as an input.
If you are using the Docker image API listens on port 4000 and only responds to a GET request (i.e. http://localhost:4000)
Your output should be a json array, ordered vehicles by distance between them. We should reach your solution via a public git repo.
- Self documenting code is a plus.
- Unit tests will be nice.
- SOLID principles are heart-warming.
- TypeScript will be a bonus but nice to have.
- Dockerized solutions have a big welcome.
- Optional Route Optimization is a big bonus but not required.