July 2021
Intermediate to advanced
176 pages
4h 14m
English
Before we begin, let’s scaffold a new project to work on. We are going to build a simple utility to help us analyze airport data by country. We will see which countries and territories have the biggest number of working airports in the world. Let’s call this application airports:
| | $ mix new airports |
Next, let’s edit mix.exs to add flow as a dependency. We are also going to need a CSV parser. Change your dependencies list to this:
| | defp deps do |
| | [ |
| | {:flow, "~> 1.0"}, |
| | {:nimble_csv, "~> 1.1"} |
| | ] |
| | end |
Once you’re done, run mix deps.get to download the dependencies.
We also have to download the dataset itself. The one we are going to use has been published by OurAirports and is available ...
Read now
Unlock full access