Project preparation
Prior to setting up our application, we are going to do some additional configuration, depending on the operating system. We will separate the configuration into two sections – Windows configuration and Linux-based systems (including macOS).
Windows configuration
In Chapter 7, we configured our Windows environment to use rbenv to be able to use Ruby 2.6.10. If you haven’t done so, please go back to the Installing Ruby on Rails in Windows section, as this is required for this chapter. For Rails 7 (which we will install in this chapter), we will require Ruby 3.1.1 installed and some dependencies that aren’t easily available for Windows. We will use the Git SDK’s bash shell (which we also installed in Chapter 7) to solve this issue. So, let’s open a Windows PowerShell and type the following command:
C:\git-sdk-64\git-bash.exe
This will open a Git Bash console, which looks and behaves a lot like a Linux shell. Let’...