This repository is my output from working on hotrails.dev.
You need to have:
- PostgreSQL running and available on port
5432
- Redis running and available on port
6379
See Makefile to get up and running.
When creating controllers turn off turbo functionality to make sure they work properly before doing any improvement.
To disable Turbo functionality add the final two lines of code below to app/javascript/application.js
.
// Entry point for the build script in your package.json
import "@hotwired/turbo-rails"
import "./controllers"
import { Turbo } from "@hotwired/turbo-rails"
Turbo.session.drive = false
My approach when doing this tutorial was to create a branch per chapter then rebase and merge all commits in that branch. For the most part, this allows me to look at the history of the project in detail in future.