Now we know what we want to build. We also have a rough idea of what our file structure will be. When we run the application, the
rackup file that we load is
config.ru. This file tells the server what environment to use and which file is the main application to load.
Before running the server, we need to write some minimal code. It includes writing three files:
We can, of course, write these files in any order we want to, but we have to make sure that all three files have sufficient code for the application to work.
Let's start with
This is the file that config.ru loads when the application is executed. This file, in turn, loads all the other files that help it understand the available routes and underlying ...