Setting Up A Database
We're going to install sqlite3 from homebrew because we can't use the built-in version with macOS Sierra without running into some troubles.
Zsh is the new default shell in Catalina. I made it my primary shell. Brew is the missing package manager for osx. It’s great, go get it. Drink a cup of tea while it downloads Xcode tools for you if it needs to. Install pyenv through Brew. Pyenv is fantastic for managing different python versions on mac. Once Brew is installed, you should. Unfortunately, Eclipse is not capable of communicating with any debugger other than GDB (yet). Here is a step-by-step guide for installing and configuring GDB. As with GCC, the easiest way to install GDB is through Homebrew. In a Terminal window, run the command brew install gdb, and wait for it to complete. (As usual, it may. The install of Homebrew also works on macOS Catalina, macOS Mojave, (High)Sierra, El Capitan, and Yosemite, so macOS 10.10 – 10.14 Homebrew isn’t the only option, also available is MacPorts and Fink but Homebrew is the newest and most popular of the trio.
Rails ships with sqlite3 as the default database. Chances are you won't want to use it because it's stored as a simple file on disk. You'll probably want something more robust like MySQL or PostgreSQL.
There is a lot of documentation on both, so you can just pick one that seems like you'll be more comfortable with.
If you're new to Ruby on Rails or databases in general, I strongly recommend setting up PostgreSQL.
Install Homebrew On Macos Catalina
If you're coming from PHP, you may already be familiar with MySQL.
MySQL
You can install MySQL server and client from Homebrew:
Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them:
By default the mysql user is root
with no password.
When you're finished, you can skip to the Final Steps.
PostgreSQL
You can install PostgreSQL server and client from Homebrew:
Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them:
By default the postgresql user is your current OS X username with no password. For example, my OS X user is named chris
so I can login to postgresql with that username.
if you do not have brew installed on your mac, Install homebrew on your mac by running the following command on your Terminal.
Install kafka in MacOS Catalina
How To Install Brew On Macos Catalina
First install openjdk 8 using brew cask and then install kakfa.
When the installation completes, It will show you something like below
Start zookeeper & kafka as a service
Stop zookeeper & kafka service
If you do not want to run kafka & zookeeper as a service use below commands
If you face any error in starting kafka, you will have configure listeners in /usr/local/etc/kafka/server.properties config file,
uncomment and change the values like below
Check if kafka is functioning properly
Install Brew On Mac Catalina Download
Create test topic
Start kafka consumer console
Install Brew On Mac Catalina Update
Start kafka producer console
How To Install Brew On Catalina
Once the producer starts enter any message and press enter.