Skip to content
Yann Lastapis edited this page May 28, 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 NodeJs

brew install node

Install Bower

npm install -g bower

Install Grunt

npm install -g grunt-cli

Install redis

brew install redis

Install mongoDb

brew install mongodb

Install nginx

brew install nginx

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

openssl genrsa -des3 -passout pass:x -out donut.local.pass.key 2048
openssl rsa -passin pass:x -in donut.local.pass.key -out donut.local.key
rm donut.local.pass.key
openssl req -new donut.local.key -out donut.local.csr

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

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

Update nginx configuration

vim /usr/local/etc/nginx/nginx.conf

See Readme

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
Clone this wiki locally