Installing Node, Redis and PostgreSQL on your Mac

If you already have these installed, you can skip this step.

Once you have homebrew installed, you can install node and redis very easily. If you're planning on building a database-driven app, you will want to install a database, as well. We recommend Postgres. To install these three just type the following command into your terminal:

brew install node redis postgres

postgres is optional, and you can leave it out.

If you don't want to have to manually start the redis and postgres servers each time your computer restarts, be sure to run the commands that start with launchctl load .... They will be displayed in your terminal after brew is finished installing and will probably look like this:

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

If the commands above are not working, then brew on your machine might be a little out of sync. No worries, just run these commands:

brew info postgres
brew info redis

Near the bottom of these info pages you will find the correct command to run on your machine. The correct commands may look something like this:

brew services start postgresql
brew servcies start redis