Skip to content

joyofrails/joyofrails.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

joyofrails.com

Build Status Deploy Status Code Coverage

A place to learn and celebrate the joy of using Ruby on Rails

https://www.joyofrails.com

Overview

Building a Rails application to help people learn more about building Rails applications.

  • One Person Framework: Rails provides all one person needs to build a robust frontend experience with Hotwire.
  • Minimal moving pieces: Prefer SQLite as a database. Single server hosting.
  • Vanilla Rails: Rely on Rails conventions. Avoid needless abstractions. Introduce gems judiciously (or for educational value).

Development

Requirements

  • Ruby, see .ruby-version

    Use a Ruby version manager to install and manage Ruby versions, such as

    To use YJIT, Rust must first be installed and be found on PATH:

    1. See https://www.rust-lang.org/tools/install for instructions on installing Rust
    2. Then install the correct version of Ruby using preferred version manager:
  • Node, see .node-version, brew install node or use NVM

  • A process manager for Procfile-based applications, either

Setup

Run the installation script to get the application set up. It is intended to be idempotent and can be run multiple times:

bin/setup

Server

Run the following to start the server and automatically build assets.

bin/dev

Test

Run RSpec tests

bin/rspec

Run Jest tests

npm run test

Run the following to run all tests

bin/verify

License

Copyright 2024 Ross Kaffenberger under the BSD 3 Clause License.