We're going to install and configure essential (and not-so-essential) tools for web development on MacOS.
MacOS being a Unix derivative, and the Open Source community being very active, you can get all the tools that make Linux a great OS for development.
If you want to go further, take a look at:
- this macOS Setup Guide,
- Awesome Mac, a huge collection of categorized apps for Mac.
- Open Finder on Home folder
- Home and Code shortcuts in sidebar
- Customize dock (terminal as favorite, hide dock, etc.)
- A well-designed, balanced color theme makes working in the terminal nicer: Oceanic Next is quite popular (you can also find it for Sublime Text and Visual Studio Code).
- Disable sound bell
- Adjust default font size
- Homebrew is a package manager that allows to easily install programs from the command-line.
- Cask is its extension dedicated to graphical applications.
Paste this into your terminal to install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Press RETURN when asked for.
Once it's done, paste this to install Cask:
brew tap caskroom/cask
- Git is the well-known code-versioning software
- Bash Completions bings nice auto-completion features to the shell
- Coreutils are the essential GNU tools (
ls
, etc.), which are better than the ones shipped with MacOS - MySQL is a commonly used Database Management System
You can use brew install
followed by any number of package names to install more than one piece of software at once.
brew install git bash-completion tree wget coreutils [email protected]
Use brew search <keyword>
to find suggestions for other software (replace <keyword>
with anything, e.g. mp3
, etc.).
- As for browsers, you'll probably need both Mozilla Firefox and Google Chrome, and might want to give Brave a try
- You can pick one of Visual Studio Code, Atom, Sublime Text, etc, Sequel Pro via Cask
Just like brew
, brew cask
allows you to install many packages with a single command:
This installs Firefox, Chrome, Brave and Visual Studio Code (you might skip this one until you start studying databases):
brew cask install firefox google-chrome visual-studio-code
- Disable "commit characters"
- Set tab size according to the language
- Install extensions (Live Server, etc.)
- Username / Email
- Default editor
- Global
.gitignore
Two files have to be created:
.bashrc
.bash_profile
This step can be automated!
Just open your terminal, then paste this:
curl https://gist.githubusercontent.com/bhubr/c037ca57daa03074b4cff72ffb23228d/raw/677c96093f9c9af345dbdb74b9168cb1b143f1f2/sample.bashrc -o ~/.bashrc
curl https://gist.githubusercontent.com/bhubr/c037ca57daa03074b4cff72ffb23228d/raw/677c96093f9c9af345dbdb74b9168cb1b143f1f2/sample.bash_profile -o ~/.bash_profile
chmod 700 ~/.bashrc
chmod 700 ~/.bash_profile
Then RESTART your machine (otherwise most of Bash&Git config just won't work).
- PHP (Homebrew)
- Apache or Nginx
- MySQL
- phpMyAdmin (Apache or Nginx + PHP)
- Java (Oracle JVM via Cask)
- Node.js (not via brew but via NVM)
- Install Devdocs.io locally - requires Ruby, see instructions