Setting up a macbook for development!
Note: The following set of instructions were carried out on a fresh MacBook M1 Pro 14 with MacOS Monterey v12.5
which brew
brew help
Chrome
Mozilla Firefox
Microsoft Edge
https://code.visualstudio.com/
brew update
brew install nvm
mkdir ~/.nvm
touch ~/.zshrc
export NVM_DIR="$HOME/.nvm"
#This loads nvm
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh"
#This loads nvm bash_completion
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && . "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"
nvm help
nvm install node
brew update
brew tap mongodb/brew
brew install [email protected]
export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"
softwareupdate --install-rosetta
mongo --version
mongod --version
mongos --version
mongosh --version
which mongo
brew services start mongodb/brew/[email protected]
brew services stop mongodb/brew/[email protected]
mongod --config /opt/homebrew/etc/mongod.conf --fork
mongosh