The Purpose of this small repository is to show an implementation of the Dijkstra's algorithm along with good Scala functional programming code.
Read the Instructions for Processing the data
Main.scalaapplication entry point. (Only place within the app with side effects)TrafficProcessor.scala: contains the main business logic for generating/calculating the best routeparsing package: contains code related to the interaction with the data filecodecs: contains classes used when encoding/decoding json
- Use Generator-driven property checks to generate random input for the unit tests
- Add more unit tests to test more cases and increase coverage
- Make sure your environment is setup to run
sbtapplications (java and sbt are installed in your system) - Enter the SBT console.
- Available SBT commands:
run: execute the applicationtest: run all unit testsrunCoverage: execute all unit tests and generate the coverage report