Installation Guide for Mac

This guide supplies step-by-step instructions for installing the required tools for the course.

Java Development Kit

  1. Navigate to the JDK downloads page.

  2. Be sure to review the Oracle Technology Network License Agreement for Oracle Java SE.

  3. Find the "Java SE Development Kit 8u211" heading and select the "macOS x64" download option, as shown in the following image:

    A screenshot displays Java SE Development Kit download options for various operating systems.

  4. When the download completes, open the installation package in your browser.

  5. In the installation package window, double-click the package icon to start the installation wizard.

  6. In the Introduction section of the installation wizard, select Continue.

  7. The Destination Select section will automatically choose an installation location and then redirect to the next section.

  8. Under Installation Type, select Install.

  9. Enter your password in the box that appears, then select Install Software.

  10. When the installation completes, a message will indicate that the software was successfully installed.

  11. The wizard will automatically progress to the Summary section, meaning that you've successfully installed the JDK!

  12. Close the window and select "Move to Trash" for the installation files.

  13. Open Terminal and run the java -version command to verify that the installation worked.

IntelliJ IDEA

  1. Navigate to the Intellij IDEA downloads page.

  2. Download the Community edition.

  3. When the download completes, run the disk image file.

  4. In the Finder window that appears, drag the IntelliJ IDEA CE icon into your Applications folder.

  5. Find IntelliJ in either Launchpad or your Applications folder, then open it.

  6. When you receive a prompt to open a third-party app downloaded from the internet, select Open.

  7. Choose whether or not to send usage statistics.

  8. After a successful installation, eject the install drive and delete the IntelliJ IDEA disk image from your downloads.

Homebrew

  1. Navigate to the Homebrew webpage. Copy the script listed under Install Homebrew, as shown in the following image:

    A screenshot displays a line of code under the Install Homebrew heading.

  2. Paste the script into your Terminal window and press Enter, as shown in the following image:

    A screenshot displays a Terminal window with an installation script copied into it.

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:

  1. 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, enter mysql -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."
  2. 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.
  3. 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

  1. Navigate to the MySQL Workbench download page, shown in the following image:

    A screenshot displays the MySQL Community Downloads page, with a Download button highlighted.

  2. After downloading, your screen should resemble the following image:

    A screenshot displays the installation window for MySQL Workbench.

  3. Drag the MySQL Workbench icon and drop it on the Applications icon in this window.

  4. Once you've completed the installation, navigate to your Applications folder and open MySQL Workbench.

  5. Log in using the same password you set previously for MySQL, as shown in the following image:

    A screenshot displays the MySQL Workbench login window.

Node.js

  1. Navigate to the Node.js website.

  2. 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:

    A screenshot displays the Node.js download options for macOS, with the LTS option highlighted.

  3. 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.

    A screenshot displays the Node.js Setup Wizard, with the Next button highlighted.

    Note: You might be prompted to install tools for native modules. Don't select anything on that page; just select Next.

  4. 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:

    A screenshot displays an installation window for Node.js, with the Install button highlighted.

  5. When the installation is complete, select Finish!

Heroku CLI

  1. To install the Heroku CLI on macOS, first ensure that you have Homebrew installed on your machine.

  2. Once you've confirmed that you have Homebrew installed, open Terminal and enter the command brew tap heroku/brew && brew install heroku.

  3. 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

  4. 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

  1. Navigate to the Postman downloads page.

  2. Select the download for your Mac.

  3. After the download finishes, run the installer.

  4. When you receive a prompt to open a third-party app downloaded from the internet, select Open.

  5. When prompted, select "Move to Application Folder".

  6. 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.