Skip to content
Yann Lastapis edited this page Jun 17, 2015 · 16 revisions

This page will explain the process to have a full development platform on Mac OS.

Install Xcode

Install Through App Store

Install Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Nvm to manage Node versions

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
nvm install 0.10
nvm use 0.10

Install Bower & Grunt Globally

npm install -g bower
npm install -g grunt-cli

Install redis & set as service

brew install redis
brew services start redis

Install mongoDb

brew install mongodb
brew services start mongodb

Install nginx

brew install nginx
vim /usr/local/etc/nginx/nginx.conf --> See README
sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

Install Pomelo

npm install -g pomelo

Generate auto-signed certificates

cd /
mkdir www/ssl
sudo chmod 777 www
sudo chmod 777 www/ssl
cd www/ssl

sudo openssl genrsa -des3 -passout pass:x -out donut.local.pass.key 2048
sudo openssl rsa -passin pass:x -in donut.local.pass.key -out donut.local.key
rm donut.local.pass.key
sudo openssl req -new -key donut.local.key -out donut.local.csr
sudo openssl x509 -req -days 365 -in donut.local.csr -signkey donut.local.key -out donut.local.crt

sudo openssl genrsa -des3 -passout pass:x -out ws.donut.local.pass.key 2048
sudo openssl rsa -passin pass:x -in ws.donut.local.pass.key -out ws.donut.local.key
rm ws.donut.local.pass.key
sudo openssl req -new -key ws.donut.local.key -out ws.donut.local.csr
sudo openssl x509 -req -days 365 -in ws.donut.local.csr -signkey ws.donut.local.key -out ws.donut.local.crt

Import certificate on Chrome

http://www.robpeck.com/2010/10/google-chrome-mac-os-x-and-self-signed-ssl-certificates/#.VWbTnVztlBc

Edit host file

vim /private/etc/hosts

And add the following lines :

127.0.0.1 donut.local
127.0.0.1 ws.donut.local

Generate public key

cd
ssh-keygen -t rsa -b 4096 -C "youremail@gmail.com"

Generate config file

cd
cd .ssh
touch config
chmod 644 config
ssh mongo01

Install brew services

brew tap homebrew/services
brew services start mongodb

Pull Last Database

cd /www/donut
grunt donut-pull-database