Technical requirements
The requirements for this chapter are as follows:
- A working installation of Crystal
- A working installation of jq
- A working installation of libnotify
- A working C compiler, such as GCC
You can refer to Chapter 1, An Introduction to Crystal, for instructions on getting Crystal set up. The latest versions of jq, libnotify, and GCC can most likely be installed using the package manager on your system, but can also be installed manually by downloading them from https://stedolan.github.io/jq/download, https://gitlab.gnome.org/GNOME/libnotify, and https://gcc.gnu.org/releases.html respectively. If you're working through this chapter on a non-Linux-based OS, for example, macOS or Windows/WSL, things may not work as expected, if at all.
All of the code examples used in this chapter can be found in the Chapter 7
folder on GitHub: https://github.com/PacktPublishing/Crystal-Programming/tree/main/Chapter07.