Installation Guide for Windows
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.
-
Select the "Windows x64" download option under the "Java SE Development Kit 8u211" heading, as shown in the following image:
-
Run the installation file.
-
On the first setup page, select Next.
-
Choose the installation directory, then select Next.
-
Choose the installation directory again.
-
Select Next.
-
A final window will indicate that you've successfully installed the JDK!
IntelliJ IDEA
-
Navigate to the IntelliJ IDEA downloads page.
-
Download the Community edition.
-
Run the installation file.
-
On the first setup page, select Next.
-
Choose the destination folder, then select Next.
-
Select the "Update PATH variable" option, create the ".java" association, and then select Next.
-
Select Install to begin the installation.
-
Choose your preference for when to reboot.
-
After you reboot, start IntelliJ.
-
Accept the privacy policy and continue.
-
Choose whether or not to send usage statistics.
Maven
-
Download the latest binary ZIP from the Apache Maven downloads page, as shown in the following image:
-
Unzip the file, and install to
C:\opt\apache-maven-3.8.4
(but the file name might vary based on the version you download). -
Press the Windows key on your keyboard and search for "Edit the system environment variables". Once that appears in the search screen, click on it, as shown in the following image:
-
You'll then be prompted with the System Properties screen. Navigate into the Advanced tab and select "Environment Variables...", as shown in the following image:
-
On the Environment Variables screen, under "User variables for
<user>
" (where<user>
is your username on that computer), click "New...". Name the variableMAVEN_HOME
, and set the variable value to the location where you unzipped Maven (for example,C:\opt\apache-maven-3.8.4
). Refer to the following image for an example: -
On the Environment Variables screen, under "User variables for
<user>
" (where<user>
is your username on that computer), select Path and then select the "Edit..." button in the top section of the screen—as shown in the following image: -
In the "Edit environment variable" window, select New.
-
Your cursor will appear in a new line at the bottom of the variables. Your screen should resemble the following image:
-
Paste
%MAVEN_HOME%\bin
into this box and click OK. -
Open a command prompt and run
mvn --version
to verify successful installation.
MySQL
-
Navigate to the MySQL Community Downloads page
-
In the "Select Operating System" dropdown menu, choose Microsoft Windows, as shown in the following image:
-
Next to "Windows (x86, 32 & 64-bit), MySQL Installer MSI", select "Go to Download Page". On the next page, find the smaller file size for "Windows (x86, 32-bit), MSI Installer", and click the Download button. Refer to the following image for an example:
-
When prompted about signing up for a free Oracle Web account on the next page, select "No thanks, just start my download," as shown in the following image:
-
Navigate to the folder where the file was downloaded, and double-click it to run the installer. If you get prompted for an update, select Yes. When you reach the page labeled "Choosing a Setup Type", check that "Server only" is selected, and click Next, as shown in the following image:
-
On the next screen, entitled Download, you'll find your product listed (it should say "MySQL Server", followed by a version number). Click Execute to start the installation process, as shown in the following image:
-
After you click Execute, the status will be listed as Downloaded. Click Next, as shown in the following image:
-
The MySQL server is now ready for installation. Click Execute to begin the installation, as shown in the following image:
-
Once the installation status shows as Complete, click Next. Then click Next on the next page, which should indicate "Ready to configure", as shown in the following image:
-
On the Type and Networking page, do not change anything. Just select Next to proceed to the Authentication Method page.
-
On the Authentication Method screen, select "Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)" and click Next, as shown in the following image:
-
On the next screen, Accounts and Roles, you'll need to enter a password under Root Account Password, near the top of the screen. Enter "password" in both boxes, as shown in the following image:
Note: For the purposes of this course, setting your root password to "password" keeps things simple and prevents sensitive passwords from being shared on GitHub when you submit work. It is difficult to change or reset your MySQL root password, so make sure to enter it correctly.
-
On the Windows Service screen, don't change anything, and click Next. On the Apply Configuration screen, click Execute to apply the changes.
-
After the configuration is complete, click Finish.
Note: If you have any issues with the Windows (x86, 32-bit), MSI Installer that is the SMALLER file size, go back and download the LARGER size, following the same steps.
Now you will need to add the MySQL PATH to your environmental variables.
Add the MySQL PATH to the Environmental Variables
-
First you'll need to copy the MySQL PATH to your clipboard. Open any folder on your computer and select "This PC" in the left-hand navigation bar, then open the
C:
drive. -
Open the
Program files
folder, then navigate to theMySQL
folder.Note: Depending on the version of Windows on your computer, MySQL might be inside the
Program files (x86)
folder. -
Double-click the
MySQL Server 8.0
folder, and finally, double-click thebin
folder. Your window should resemble the following image: -
Right-click the address at the top of the screen and select "Copy address as text", as shown in the following image:
-
Now that you've got the PATH copied to your clipboard, press the Windows key on your keyboard and search for "Edit the system environment variables". Once that appears in the search screen, click on it, as shown in the following image:
-
You'll then be prompted with the System Properties screen. Navigate into the Advanced tab and select "Environment Variables...", as shown in the following image:
-
On the Environment Variables screen, under "User variables for
<user>
" (where<user>
is your username on that computer), click into Path and then click the "Edit..." button in the top section of the screen. It should resemble the following image: -
In the "Edit environment variable" window, select New.
-
Your cursor will appear in a new line at the bottom of the variables. Paste your PATH in this box and click OK. Your screen should resemble the following image:
-
Once you've added the PATH, restart Git Bash completely. You can verify that the installation was correct by typing
mysql -V
into Git Bash. -
The PATH followed by the MySQL version number should be printed to the screen. Once you verify that the MySQL server was correctly installed, you can move on to setting up MySQL Shell.
MySQL Shell on Windows
Important: To use MySQL commands, you'll need to use MySQL Shell. You won't be able to access this shell through your Git Bash terminal—you'll need to use the Windows command prompt.
-
To open MySQL Shell, press the Windows key and the R key at the same time. This will bring up a dialog window titled Run. Enter
cmd
in the input, and click OK to open your Windows command prompt. -
Once you're there, you'll need to log into MySQL Shell. To do so, enter
mysql -u root -p
in the Windows command 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'll be prompted for the root password that you created when you installed MySQL.
-
Enter your password (it should be "password"), and you will be logged into MySQL Shell.
- From here you will 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 the MySQL Shell.
MySQL Workbench
-
Open the MySQL Installer that you used to install the MySQL server.
-
Select Add, on the right side of the window, as shown in the following image:
-
Select Applications. Next, select MySQL Workbench, then select the top option, and select the top option again. Finally, click the right arrow to add the most recent version of MySQL Workbench to the "Products to Be Installed" list. Click Next to proceed to the next page. Refer to the following image for an example:
-
On the download page, click Execute to download MySQL Workbench.
-
Once the download has finished, click Next to move on to the next page.
-
On the Installation page, click Execute to start the install. After the installation finishes, click Next and then Finish on the next page.
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 Windows". 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, click finish.
Heroku CLI
-
To install the Heroku CLI on Windows, download the 64-bit installer for Windows.
-
Open the installer on your machine and follow the prompts to complete the installation. Once the installation is complete, open Git Bash.
-
To verify that the Heroku CLI was installed, type
heroku --version
into the command line. You should get a message that resembles the following (but the number might be different depending on your version of the CLI):heroku/7.42.6 win32-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 to complete login. The CLI will then log you in automatically.
Postman
-
Navigate to the Postman downloads page
-
Select the "Windows 64-bit" button.
-
Select "Create Free Account" and go through the process of creating an account. When 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.