Welcome to Chapter 7, Making a Weather App in Elm. In this chapter, we will make our Elm-powered weather app. The purpose of this app is to learn how to fetch information from JSON and use it in our app.
The topics we will cover include:
- Taking care of errors with
Result
- Dealing with optional values and nothingness using
Maybe
- Decoding JSON strings using decoders
- Fetching remote data with the help of the HTTP package
- Working with a third-party API
After completing this chapter, you will be able to:
- Fetch information from the internet in JSON format
- Have your Elm apps consume JSON data using decoders
- Understand how all the moving parts fit together to build a functioning app
To begin, we will look at obtaining weather data from a third-party API.