-
Generate and add
ssh
keys to GitHub
-
Install
pyenv
$ brew install pyenv
-
Configure
pyenv
$ echo 'if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi' >> ~/.bash_profile
-
Eval
pyenv
$ eval "$(pyenv init -)"
-
Install
python
$ pyenv install 2.7.10
-
Set global
python
version$ pyenv global 2.7.10
-
Install
virtualenv
andvirtualenvwrapper
$ pip install virtualenvwrapper # will automatically install virtualenv $ pyenv rehash
-
Configure
virtualenvwrapper
$ echo 'export WORKON_HOME=$HOME/.virtualenvs' >> ~/.bash_profile $ echo 'export PROJECT_HOME=$HOME/Projects' >> ~/.bash_profile $ echo 'export VIRTUALENVWRAPPER_SCRIPT=$HOME/.pyenv/versions/2.7.10/bin/virtualenvwrapper.sh' >> ~/.bash_profile $ echo 'source $VIRTUALENVWRAPPER_SCRIPT' >> ~/.bash_profile
-
Create
PROJECT_HOME
directory$ mkdir -p $HOME/Projects
-
Enable
virtualenvwrapper
$ source $HOME/.pyenv/versions/2.7.10/bin/virtualenvwrapper.sh
-
Install
mysql
$ brew install mysql
-
Configure
mysql
to start on login$ ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist # start mysql
-
Install
redis
$ brew install redis
-
Configure
redis
to start on login$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
Restart the terminal
-
Create project
virtualenv
$ mkproject projectname
-
Install development requirements
$ brew install swig304 freetype jpeg libpng $ LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" SWIG_FEATURES="-cpperraswarn -includeall -I$(brew --prefix openssl)/include" pip install --allow-external bitly-api --allow-unverified bitly-api -r requirements/development.txt
-
Create local settings file
-
Install
node
$ brew install node010
-
Install
node
packages$ npm install
-
Install frontend libraries
$ ./manage.py bower_install
-
Install
bash-completion
.$ brew install bash-completion