Technical requirements
The requirements for this chapter are as follows:
- A working installation of Crystal
- The ability to run a PostgreSQL server, such as via Docker
- A way to send HTTP requests, such as cURL or Postman
- An installed and working version of
https://www.pcre.org/ (
libpcre2)
You can refer to Chapter 1, An Introduction to Crystal, for instructions on getting Crystal set up. There are a few ways to run the server, but I am going to be leveraging Docker Compose and will include the file I am using within the chapter's folder.
All of the code examples used in this chapter can be found on GitHub: https://github.com/PacktPublishing/Crystal-Programming/tree/main/Chapter09.