Use a Ruby version manager like rbenv to install ruby.
- Install rbenv
brew install rbenv ruby-build
- Install ruby with the version in .ruby-version
rbenv install 3.3.1
- Check the version
ruby -v
ruby 3.3.1 (2024-04-23 revision c56cd86388) [arm64-darwin23]
You can install PostgreSQL using postgresapp.com or Homebrew
- Install
brew install postgresql@16- Add
psqlto$PATH
echo 'export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"' >> ~/.bashrc- Start the server
brew services start postgresql@16
- Create a
postgresuser
createuser -s postgres- Set the password for postgres
psql postgres
Within psql
ALTER ROLE postgres WITH PASSWORD 'password';- Visit postgresapp.com and download the app with PostgreSQL app.
- Install the app.
- Start the server and initialize the cluster using the UI
brew install oven-sh/bun/bunVisit https://bun.sh/docs/installation for more details
Install docker using homebrew
brew install dockerThe latest version of docker comes with docker-compose.
To install the docker desktop, visit https://www.docker.com/products/docker-desktop/