macOS Development Setup
Complete guide to setting up your macOS development environment for Chatwoot contribution.
macOS Development Setup
This guide will help you set up your macOS development environment for contributing to Chatwoot. Open Terminal app and run the following commands.
Installing the Standalone Command Line Tools
Open Terminal app and run:
This installs essential development tools including Git, GCC, and other command line utilities.
Install Homebrew
Homebrew is the missing package manager for macOS:
After installation, add Homebrew to your PATH (if not automatically added):
Install Git
Configure Git with your information:
Install Ruby Version Manager
Choose between RVM or rbenv for managing Ruby versions.
Option 1: Install RVM (Recommended)
Option 2: Install rbenv (Alternative)
Install Ruby
Chatwoot APIs are built on Ruby on Rails. You need to install Ruby 3.2.2.
If using RVM:
If using rbenv:
rbenv identifies the ruby version from .ruby-version
file on the root of the project and loads it automatically.
Verify Ruby installation:
Install Node.js
Chatwoot requires Node.js version 20:
If you need to link Node.js 20:
Verify Node.js installation:
Install pnpm
We use pnpm
as our package manager for better performance:
Verify pnpm installation:
Install PostgreSQL
The database used in Chatwoot is PostgreSQL.
Option 1: PostgresApp (Recommended)
- Download and install PostgresApp from https://postgresapp.com
- This is the easiest way to get started with PostgreSQL on macOS
- Follow the setup instructions on their website
Option 2: Homebrew Installation
Start PostgreSQL service:
Create a PostgreSQL user:
Connect to PostgreSQL to verify installation:
Install Redis Server
Chatwoot uses Redis server for agent assignments and reporting:
Start the Redis service:
Verify Redis installation:
Install ImageMagick
Chatwoot uses ImageMagick library to resize images for previews and thumbnails:
Verify ImageMagick installation:
Install Additional Dependencies
Install other useful development tools:
Install Docker (Optional)
For development and testing with containers:
Or download Docker Desktop from https://www.docker.com/products/docker-desktop/.
Environment Verification
Verify all installations are working:
Configure Shell Environment
Add useful aliases to your shell configuration file (~/.zshrc
for Zsh):
Troubleshooting Common Issues
Getting Help
If you encounter issues:
- Common Errors: Check Common Errors
- Discord Community: Join our Discord
- GitHub Issues: Create an issue
Your macOS development environment is now ready for Chatwoot development! 🚀