Skip to content

Latest commit

 

History

History
82 lines (61 loc) · 1.49 KB

installing_prerequisites.md

File metadata and controls

82 lines (61 loc) · 1.49 KB

Requirements

Ruby

Use a Ruby version manager like rbenv to install ruby.

  1. Install rbenv
brew install rbenv ruby-build
  1. Install ruby with the version in .ruby-version
rbenv install 3.3.2
  1. Check the version
ruby -v
ruby 3.3.2 (2024-04-23 revision c56cd86388) [arm64-darwin23]

PostgreSQL

You can install PostgreSQL using postgresapp.com or Homebrew

Using Homebrew

  1. Install
brew install postgresql@16
  1. Add psql to $PATH
echo 'export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"' >> ~/.bashrc
  1. Start the server
brew services start postgresql@16
  1. Create a postgres user
createuser -s postgres
  1. Set the password for postgres
psql postgres

Within psql

ALTER ROLE postgres WITH PASSWORD 'password';

Using postgresapp.com

  1. Visit postgresapp.com and download the app with PostgreSQL app.
  2. Install the app.
  3. Start the server and initialize the cluster using the UI

Bun

brew install oven-sh/bun/bun

Visit https://bun.sh/docs/installation for more details

Docker

Install docker using homebrew

brew install docker

The latest version of docker comes with docker-compose.

To install the docker desktop, visit https://www.docker.com/products/docker-desktop/