Ruby on Rails: notes and background exports
You will use Ruby 3.4 and Bundler and build a web app named notes-web plus a worker
named notes-worker in the examples Project’s rails Environment.
This is a small Rails API application using Rails routing and controllers. Active Record handles PostgreSQL and MariaDB (the Trilogy adapter); the Mongo Ruby driver handles MongoDB. It deliberately has no asset pipeline or database-backed job framework: the worker chapter shows the Redis queue directly.
Complete Before you start, then follow these chapters in order:
- Create and deploy hello
- Persist notes in PostgreSQL
- Add a Redis export worker
- Save exports in object storage
- Try MariaDB or MongoDB instead
- Prepare for production, or troubleshoot and clean up
Downloads: hello source · complete notes source. The source walkthrough is included directly from those runnable files.