Setting up my Mac for development, 2020 macOS Catalina.

# who am I?
whoami
# check if Xcode package is installed
# if installed it will display : /Applications/Xcode.app/Contents/Developer
xcode-select -p
# install Xcode command line form terminal
xcode-select --install
#verify successfull installation
xcode-select -p
#verify if GCC is installed
gcc --version
#check if homebrew is installed
# if installed returns  /usr/local/bin/brew
which brew

#install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#once installation is successfull
brew doctor

#install brew bundle command
brew tap Homebrew/bundle
#show/hide hidden files
defaults write com.apple.finder AppleShowAllFiles YES
defaults write com.apple.finder AppleShowAllFiles FALSE

#show library
chflags nohidden ~/Library
# this will process the Brewfile in the current directory
$ brew bundle

# or you can point to a specific one
$ brew bundle ~/folder/Brewfile
#Brewfile

# Git + Terminal
brew 'git'
brew 'tree'
brew 'wget'

#Python
brew 'pyenv'
brew'jupyter'
brew 'pyenv-virtualenvwrapper'


#Ruby
brew 'rbenv'

#Jekyll

# Node
brew 'node'
brew 'yarn'

#React Native

# Databases + WordPress
brew 'postgresql'
'brew'mysql'
brew 'wp-cli'

# Casks Dev
cask 'anaconda'
cask 'android-studio'
cask 'visual-studio-code'
cask 'sequel-pro'
cask 'postman'

# Casks Design
cask 'framer-x'
cask 'adobe-creative-cloud'
cask 'blender'
cask 'figma'

# Casks Apps
cask 'pock'
cask 'notion'
cask 'google-chrome'
cask 'slack'
cask 'spotify'
# Install Ruby
rbenv install 2.7.1
rbenv global 2.7.1
ruby -v

#Gems
gem install rails
gem install bundler
# Install Python 3.x using pyenv. 
pyenv install 3.x.x

pyenv versions
pyenv local 3.x.x
pyenv global 3.x.x

#Now it's time to start the jupyter notebook.
jupyter notebook

# Set your username
$ git config --global user.name "Your Name Here"

# Set your email address
$ git config --global user.email "[email protected]"
#INSTALL N
#Since you probably already have node, the easiest way to install n is through npm:
npm install -g n

#Execute n on its own to view your currently installed versions.
n

#Simply execute n <version> to install a version of node.
n 0.8.14
#If <version has already been installed (via n), n will activate that version.

#NINSTALL NPM CHECK UPDATES
npm install -g npm-check-updates

#Show any new dependencies for the project in the current directory
ncu

#Upgrade a project's package file
ncu -u
# The Apache HTTP Server and PHP language are already on your machine. 

apachectl -v
php -v

# Edit 
# /etc/apache2/httpd.conf

# Enable vhost
# Enable rewrites
# Enable PHP
# Change the default location for our projects
# Enable .htaccess

#add a custom configuration to VHOST configuration file that is located under /etc/apache2/extra/httpd-vhosts.conf.

Start, stop, restart and test apache server config

sudo apachectl start
sudo apachectl stop
sudo apachectl restart
sudo apachectl configtest
#Wordpres

brew services start mysql


wp core download
wp config create --dbname=NAME_OF_YOUR_DATABASE --dbuser=root --dbpass= --dbhost=127.0.0.1