Notes self on creating a developer environment for myself in Windows 10.
This is primarily for setting up a dev environment for Python, NodeJS, Java, MySQL, MariaDB.
- Navigate to https://git-scm.com/download/win for the Windows version of Git.
- Launch the .exe file after download and select your preferences/install.
- Open Git Bash after the installation is complete. I also recommend pinning it to the taskbar.
- Set up your github credentials using:
git config --global user.name "Your Name" && git config --global user.email "you@example.com"
- When pushing your first commit, you will be asked to enter your github credentials.
- Navigate to https://www.sublimetext.com/3 to download Sublime Text 3
- Navigate to Oracle Java SE Downloads and find the Windows x64 (or x86) verison.
- Download the .exe file and run it to install.
- Leave the the "Development Kit" selected during download. This gives you the JDK (Java Development Kit).
- Open up GitBash (or the regular command line) and run
java -version
to ensure the download was successful.
- Navigate to JetBrains IDEA and download the IntelliJ IDEA Community edition for windows.
- During installation, you can refer to Team Treehouse for the options to be selected.
- Opening IntelliJ for the first time, you may need to point the Project SDK to your previously downloaded Java 8 JDK.
Using the folder selector, your JDK should be located at
C:\Program Files\Java\[JDK VERSION]
.
- Navigate to https://spring.io/guides/gs/maven/ to learn to install and initialize Maven.
- After downloading the .zip file, I saved it at
C:\Program Files\Apache\apache-maven-3.5.0
. - Then, I needed to set the path and environmental variables. You can refer to this guide.
- After the path is set, run
mvn -version
in Git Bash to verify the installation. - Below are some (optional steps) to run the Java .class and .jar files created in the how-to for the webpage above:
- After running
mvn compile
andmvn package
, in theinitial
folder of the project...- Run the .class file using
java -cp target/classes hello.HelloWorld
- Run the .jar file using
java -cp target/gs-maven-0.1.0.jar package.HelloWorld
- Run the .class file using
- After running
- Navigate to this tutorial for alot of information.
- Below are the steps I took to get set-up:
- Download the MySQL Installer for Windows at https://dev.mysql.com/downloads/installer/.
- Fire up the .exe file and select the Developer Default option. Note that everything (like Python or Visual Studio) may be excecuted. That is ok. You can always add those connectors later (i.e. if you install Python or Visual Studio)
- You can click "Next" through the rest of the scenerios, leaving add default selections and adding a connection password.
- If only using a localhost connection on your laptop a username and password of "root" is fine.
- After installation, you can add
C:\Program Files\MySQL\MySQL Server 5.7\bin
to your Path variable.
- You can test that it worked in 2 ways:
- From Command Line (Windows), run
mysql -u root -p
and enter the password. - From Git Bash, run
mysql -u root -proot
(assuming your password was "root").- As an aside, I noticed mysql commands work better in the Windows Command Line.
- From Command Line (Windows), run
- Navigate to https://dev.mysql.com/downloads/workbench/ for the download.
- Note that you may need to download the prerequisites for Windows.
- Once you're sure you have the prerequisites, fire up the .exe file
- Leave all the default setting to complete the installation.
- Open MySQL Workbench at the end of the installation and connect to the "localhost" connection with your password from the MySQL installation (above).
- Navigate to this webpage to learn how to set up MariaDB in addition to MySQL
- Download the MariaDB installer for Windows from https://mariadb.com/downloads
- Fire up the .exe file and proceed with all default option except that for TCP Port.
- Change the TCP Port to 3307 (note that MySQL is already using 3306)
- Again, you can use "root" for the username and password.
- After installation, you can add
C:\Program Files\MariaDB 10.1\bin
to your Path variable (optional).- Note that you can choose either MariaDB or MySQL for this. If you want to use MariaDB, you have to remove the
C:\Program Files\MySQL\MySQL Server 5.7\bin
you made before. - From Command Line (Windows), run
mysql -u root -p
and enter the password.
- Note that you can choose either MariaDB or MySQL for this. If you want to use MariaDB, you have to remove the
- Now you can add the MariaDB connection to MySQL Workbench.
- Open MySQL Workbench and click the "+" icon above your localhost connection
- Add in a Connection Name (i.e. "Local Instance MariaDB")
- Change the Port to 3307
- Click OK to finsh. And then connect into your new localhost instance for MariaDB.
- Navigate to https://spring.io/guides/gs/intellij-idea/ to learn to set up Spring MVC with IntelliJ IDEA.
- Assuming you already installed Maven from above, no additional downloading/setup will be needed.
- Test your setup by making a Hello World Webpage.
- Now that you are set up, a great series for learning Spring MVC can be found here.
- Navigate to this repo for great instructions.
- Note that I used the "Windows x86-64 MSI installer" for my 64 bit PC
- Be sure to set Python to your path variables as well
- Run
python --version
from the command line (or GitBash) to see the installed Python version - Run
python -i
in GitBash to check if the Python Interpreter is working - Press
Ctrl C
to exit.
- Navigate to https://nodejs.org/en
- Click to download the latest stable (LTS version) of NodeJS
- After installation, run
node
in GitBash (or command line) to test if it worked - Press
Ctrl C
to exit.