Skip to content

Prerequisites Setup Guide

This guide will help you set up the required development tools for this project.

# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
## or you can use homebrew for macOS
brew install nvm

# Restart terminal or run:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Install and use Node.js - Latest Version
nvm install node
nvm use node
# Or you can install and use Node.js v24
nvm install 24
nvm use 24

## Alternative for macOS (Homebrew)
brew install node # For latest version
brew install node@24 # For specific version, in that case v24.x.x

# Verify installation
node --version  # Should show v24.x.x
npm --version   # Should show 10.x.x

Download from nodejs.org

# Download and install Chocolatey:
powershell -c "irm https://community.chocolatey.org/install.ps1|iex"

# Download and install Node.js:
choco install nodejs --version="24.14.0"

# Verify the Node.js version:
node -v # Should print "v24.14.0".

# Verify npm version:
npm -v # Should print "10.8.2".
curl -fsSL https://bun.com/install | bash
curl -fsSL https://bun.com/install | bash -s "bun-v1.3.10"

Note: bum refers to the command to run Bun Version Manager

# Install Bum (Bun version manager)
curl -fsSL https://github.com/owenizedd/bum/raw/main/install.sh | bash

# Install and use Bun 1.3.10
bum use 1.3.10

# Verify installation
bun --version  # Should show 1.3.10
curl -fsSL https://bun.com/install | bash
curl -fsSL https://bun.com/install | bash -s "bun-v1.3.10"
# Add PostgreSQL repository
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update

# Install PostgreSQL 18
sudo apt-get install postgresql-18 postgresql-client-18

# Start service
sudo systemctl start postgresql@18-main
sudo systemctl enable postgresql@18-main
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo dnf install -y postgresql18-server postgresql18-contrib
sudo /usr/pgsql-18/bin/postgresql-18-setup initdb
sudo systemctl enable postgresql-18
sudo systemctl start postgresql-18
# Using Homebrew
brew install postgresql@18
brew services start postgresql@18

# Or using Postgres.app (recommended for beginners)
# Download from: https://postgresapp.com/
  • Download installer from postgresql.org
  • Run installer and follow setup wizard
  • Remember the password you set for the postgres user
# Using Homebrew
brew install --cask docker

# Or download Docker Desktop from: https://www.docker.com/products/docker-desktop/
# Install Docker
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# Add user to docker group (logout/login required)
sudo usermod -aG docker $USER

# Install Docker Compose (if not included)
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
  • Download Docker Desktop from docker.com
  • Enable WSL 2 backend for better performance
  • Install and restart when prompted
bun add -g turbo

# Verify installation
turbo --version

After installation, verify all tools are installed correctly:

node --version    # Should show v24.x.x
bun --version     # Should show 1.3.10
psql --version    # Should show psql (PostgreSQL) 18.x
docker --version  # Should show Docker version 24+
docker-compose --version  # Should show Docker Compose version
turbo --version   # Should show Turbo version
  1. NVM not found after installation: Restart terminal or run source ~/.bashrc
  2. PostgreSQL connection issues: Ensure service is running and check connection string
  3. Docker permission denied: Add user to docker group and restart session
  4. Bun not found: Ensure ~/.bun/bin is added to your PATH

Add these to your shell profile (~/.bashrc, ~/.zshrc, or ~/.profile):

export PATH="$HOME/.bun/bin:$PATH"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

Return to Getting Started