Installation Guide for Mac
This guide supplies step-by-step instructions for installing the required tools for the course.
Java Development Kit
-
Navigate to the JDK downloads page.
-
Be sure to review the Oracle Technology Network License Agreement for Oracle Java SE.
-
Find the "Java SE Development Kit 8u211" heading and select the "macOS x64" download option, as shown in the following image:
-
When the download completes, open the installation package in your browser.
-
In the installation package window, double-click the package icon to start the installation wizard.
-
In the Introduction section of the installation wizard, select Continue.
-
The Destination Select section will automatically choose an installation location and then redirect to the next section.
-
Under Installation Type, select Install.
-
Enter your password in the box that appears, then select Install Software.
-
When the installation completes, a message will indicate that the software was successfully installed.
-
The wizard will automatically progress to the Summary section, meaning that you've successfully installed the JDK!
-
Close the window and select "Move to Trash" for the installation files.
-
Open Terminal and run the
java -version
command to verify that the installation worked.
IntelliJ IDEA
-
Navigate to the Intellij IDEA downloads page.
-
Download the Community edition.
-
When the download completes, run the disk image file.
-
In the Finder window that appears, drag the IntelliJ IDEA CE icon into your Applications folder.
-
Find IntelliJ in either Launchpad or your Applications folder, then open it.
-
When you receive a prompt to open a third-party app downloaded from the internet, select Open.
-
Choose whether or not to send usage statistics.
-
After a successful installation, eject the install drive and delete the IntelliJ IDEA disk image from your downloads.
Homebrew
-
Navigate to the Homebrew webpage. Copy the script listed under Install Homebrew, as shown in the following image:
-
Paste the script into your Terminal window and press Enter, as shown in the following image:
That's it!
Maven
You'll use the Homebrew package manager to install Maven—meaning that you can install it from the command line!
Once you've installed Homebrew, install Maven using the following command:
brew install maven
Then verify your installation with the following command:
mvn -v
MySQL
Like Maven, you'll install MySQL Server on macOS through the command line, using the Homebrew package manager.
Once you've installed Homebrew, install MySQL Server using the following command:
brew install mysql
The server is set up without a default root password. You can connect to it using the following command:
mysql -uroot
Important: You should change the root password after you install MySQL Server. You can do this using the following command:
mysql_secure_installation
MySQL Shell on macOS
You can use MySQL Shell simply by opening a new Terminal window and logging into MySQL Shell. However, you might need to start the MySQL server before you can do this. Follow these steps to start the server:
-
Open Terminal and use the
cd
command to navigate to the directory where you'll be working—for example, one of your project folders. Then, in your chosen directory, entermysql -u root -p
to initialize the MySQL command-line prompt.- This tells MySQL Shell that you want to log in with the root user (
-u
). The-p
syntax stands for "password."
- This tells MySQL Shell that you want to log in with the root user (
-
Once you enter this command, you should be prompted for the root password that you created when you installed MySQL. Input your password and press the Enter key.
- From here, you'll be able to enter MySQL commands. You don't need to do this now, but you can revisit these instructions as you work through this module.
-
Type the command
quit;
to exit MySQL Shell.Note: If you get the error message "Command not found", you'll need to set up a
.zshrc
file in your home directory and add the mysql command to it. To do this, run the following command:echo 'export PATH="/usr/local/mysql/bin:$PATH"' >> ~/.zshrc
When you’re done, restart Terminal for this line to take effect. You can then try initializing MySQL Shell again.
MySQL Workbench
-
Navigate to the MySQL Workbench download page, shown in the following image:
-
After downloading, your screen should resemble the following image:
-
Drag the MySQL Workbench icon and drop it on the Applications icon in this window.
-
Once you've completed the installation, navigate to your Applications folder and open MySQL Workbench.
-
Log in using the same password you set previously for MySQL, as shown in the following image:
Node.js
-
Navigate to the Node.js website.
-
To download the installer, click the green box with the LTS version of Node.js under "Download for macOS". The correct version will be labeled "x.x.x LTS Recommended for Most Users", where "x.x.x" is a combination of numbers. Refer to the following image for an example:
-
After the installer has downloaded, open it to begin the installation process. Follow the prompts by clicking Next in the Setup Wizard, as shown in the following image.
Note: You might be prompted to install tools for native modules. Don't select anything on that page; just select Next.
-
After you click the checkbox to accept the license agreement, continue clicking Next until the installation screen says "Ready to install Node.js". Click the Install button, as shown in the following image:
-
When the installation is complete, select Finish!
Heroku CLI
-
To install the Heroku CLI on macOS, first ensure that you have Homebrew installed on your machine.
-
Once you've confirmed that you have Homebrew installed, open Terminal and enter the command
brew tap heroku/brew && brew install heroku
. -
To verify that the Heroku CLI was installed, type
heroku --version
into the command line. You should get a message that resembles the following (note that the number might be different, depending on your version of the CLI):heroku/7.42.5 darwin-x64 node-v12.16.2
-
After you confirm that the Heroku CLI was installed correctly, type
heroku login
into the command line. You'll be prompted to enter any key to go to the web browser and complete login. The CLI will then log you in automatically.
Postman
-
Navigate to the Postman downloads page.
-
Select the download for your Mac.
-
After the download finishes, run the installer.
-
When you receive a prompt to open a third-party app downloaded from the internet, select Open.
-
When prompted, select "Move to Application Folder".
-
Select "Create a Free Account" and follow the steps. When you are prompted to create a team, select "Continue without a Team".
You're Done
That's all for the installations! You've set up your computer with everything you need for the first day of class.