This is currently using Rails 7.2.
Note
This repository was initialized using mattbricston/nextgen in lieu of the standard rails new
. It was used for the initial setup up of the Rails app with Vite, Turbo, and Stimulus. TailwindCSS, Devise, and others were added after the fact.
- Ruby 3.1+
- Node 18 (LTS) or newer
- Yarn 1.x (classic)
- PostgreSQL must be installed and accepting connections
- Redis
If you meet the requirements above, you can jump straight to the Getting Started section.
Install Dependencies
brew install ruby
brew install node
brew install postgresql@15
brew install
You can install Yarn with homebrew, but it's not necessary. Just install it with npm.
npm install --global yarn
Make sure Postgres & Redis are running
brew services start postgresql@15
brew services start redis
Run this script to install necessary dependencies and prepare the Rails app to be started for the first time.
bin/setup
Tip
The bin/setup
script is idempotent and is designed to be run often. You should run it every time you pull code that introduces new dependencies or makes other significant changes to the project.
Start the Rails server with this command:
bin/dev
The app will be located at http://localhost:3000/.
Use this command to run the full suite of automated tests:
bin/rake