brew update brew install nvm
This will install node version manager. We need this as we need to install specific node version 8.11.3.
Add this to .bash_profile:
source $(brew --prefix nvm)/nvm.sh
nvm install 8.11.3
brew install postgresql
brew services restart postgresql
Replace 'restart’ with ‘start’ if this is the first run. You should see something such as:
==> Successfully started `postgresql`
Test your connection by running:
If you cannot connect some troubleshooting guide for version upgrades
brew install redis
Edit Redis configuration so that it runs in the background when started from the terminal:
open up /usr/local/etc/redis.conf and change the line:
git clone firstname.lastname@example.org:buzz-software/buzz-nodejs.git
git clone email@example.com:buzz-software/buzz-editor.git
CREATE ROLE expressbuzz WITH LOGIN PASSWORD ‘123.456’ ;
CREATE DATABASE expressbuzzdb ;
You need to create database user, name and password exactly above as local settings in the buzz-nodejs app are configured this way. Check buzz-nodejs/config/config.js for more details.
Also a comprehensive guide for Postgres install and setup on Mac OS X is here.
cd buzz-nodejs npm install
DEBUG=myapp:* NODE_ENV=development WIPEOUT_DB_ON_START=1 SEED_DEVEL=1 npm start
This will create all database tables for first time, seed the database, then start the server. In subsequent runs you can use:
DEBUG=myapp:* NODE_ENV=development npm start
Check out the application by pointing your browser at http://localhost:8081
You may learn more about that here.