The Sample Code
If you’d like to follow along with the application throughout the course of the book, you can download the sample code files from the book page on the Pragmatic Bookshelf website.[10]
The version of the code in the chapter_01/02 directory is the complete app setup with all the data structures, but none of the working JavaScript (the chapter_01/01 directory has mostly just the startup code from creating a new Rails application). That’s probably the best place to start if you are following along. After that, the directories are named after their chapter numbers and should progress in order.
To run the code, you need a few dependencies:
-
The code uses Ruby version 3.1. I recommend installing a Ruby version manager such as RVM, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access