- Install latest XCode
Generally the commands below will be executed in the Terminal, so let's install iTerm2 - http://iterm2.com
-
Install Homebrew http://brew.sh/
-
brew doctor
-
-
Node
brew install node
-
Coffee
npm install -g coffee-script
-
Phoenix https://github.com/jasonm23/phoenixxcodebuild
in Phoenix and install to\Applications
-
Phoenix config fork - https://github.com/jasonm23/Phoenix-configview key guide Ctrl + Alt + Cmd + ` (mash backtick)
-
Hammerspoon : see hammerspoon entry in the OpsManager/Book
-
ssh-add / ssh-agent opsmanager keys - get from a senior dev
-
install .zsh.d -
cd ~
thengit clone https://github.com/opsmanager/.zsh.d
-
brew install zsh
-
which zsh
(use the output of this when doingchsh
) -
chsh
- set to zsh as located above (almost certainly in/usr/local/bin/zsh
) - cd into
~/.zsh.d
../init
-
-
scutil --set HostName $computer_name
(to fixhostname
reporting) -
RVM https://rvm.io (ruby version manager, this will also install Ruby 2.1.1)
-
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
(optional) -
\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1.1
-
-
install utilities
-
gem install lunchy
-
gem install kramdown
-
gem install story_branch
-
brew install htop
-
brew install chromedriver
-
brew install figlet
-
brew install gist
-
brew install graphviz
-
brew install heroku-toolbelt
-
brew install imagemagick
-
brew install imagesnap
-
brew install pango
(this will prompt you to install XQuartz, with instructions.) -
brew install readline
-
brew install sqlite
-
brew install the_silver_searcher
-
brew install tmate
-
brew install tmux
-
brew install wget
-
-
install Emacs or Vim or another editor of high quality... (Atom?)
-
install qt -
brew install qt
-
Install redis -
brew install redis
- ensure launchd is running redis at startup
- Grab latest from another dev (NOTE: gzip-ing the dump file will save a few moments)
-
ssh neo@other-dev.local
-
redis-cli
thenSAVE
-
scp /usr/local/var/db/redis/dump.rdb neo@my_machine.local:~/
-
- Stop my Redis
lunchy stop redis
- Import latest dump.rdb to my Redis
-
cp ~/dump.rdb /usr/local/var/db/redis/dump.rdb
-
install postgres -
brew install postgres
-
ensure launchd is running postgres at startup
-
Grab latest db from another dev (NOTE: gzip-ing the dump file will save a few moments)
-
ssh neo@other-dev.local
-
backup postgres airdrilling_development db
pg_dump --dbname=airdrilling_development \ --username=postgres \ --create \ --clean \ --column-inserts \ --format=t \ --file=airdrilling_development_${timestamp}.dump
-
-
Import latest airdrilling_development dump from a running Postgres developer instance
-
restore locally
pg_restore --clean \ --no-acl \ --no-owner \ -d airdrilling_development ${dump_file_name}`
-
-
Github authenticate
- add to Developers group
-
Clone opsmanager into
~/workspace
-
cd ~/workspace && git clone git@github.com:opsmanager/OpsManager.git
-
bundle
and resolve any issues - Check login (requires @airdrilling.com email address)
-
-
Check new user has @opsmanager.com email address
-
pivotal tracker - user id and authenticate
-
Run example Jasmine spec - http://localhost:3000/jasmine?spec=dataStore.DailyDrillingReports
- Watch it fail
- Run
rake db:test:prepare
- Run
rspec spec/requests
- Run
rake spec:fixture_builder:rebuild
- Run example Jasmine spec - http://localhost:3000/jasmine?spec=dataStore.DailyDrillingReports
- watch it pass
-
Overview of Application structure - See the book... https://github.com/opsmanager/book
-
Overview of git practices
- git story
- git rebase / merge
- git conflict resolution ... (can be done as-and-when live)
-
Overview of deployment practices -
script/deploy
- git remotes for production and staging (once senior)
- production
git@heroku.com:opsmanager-production.git
- staging
git@heroku.com:opsmanager-staging.git
- production
- git remotes for production and staging (once senior)
-
Overview of backpack command -
script/backpack