Skip to content

Notes to self on creating a developer environment in Windows 10

Notifications You must be signed in to change notification settings

tomtom828/hello-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 

Repository files navigation

Hello Windows

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.

git

  1. Navigate to https://git-scm.com/download/win for the Windows version of Git.
  2. Launch the .exe file after download and select your preferences/install.
  3. Open Git Bash after the installation is complete. I also recommend pinning it to the taskbar.
  4. Set up your github credentials using: git config --global user.name "Your Name" && git config --global user.email "you@example.com"
  5. When pushing your first commit, you will be asked to enter your github credentials.

Sublime Text

  1. Navigate to https://www.sublimetext.com/3 to download Sublime Text 3

Java

  1. Navigate to Oracle Java SE Downloads and find the Windows x64 (or x86) verison.
  2. Download the .exe file and run it to install.
  3. Leave the the "Development Kit" selected during download. This gives you the JDK (Java Development Kit).
  4. Open up GitBash (or the regular command line) and run java -version to ensure the download was successful.

IntelliJ IDEA

  1. Navigate to JetBrains IDEA and download the IntelliJ IDEA Community edition for windows.
  2. During installation, you can refer to Team Treehouse for the options to be selected.
  3. 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].

Maven

  1. Navigate to https://spring.io/guides/gs/maven/ to learn to install and initialize Maven.
  2. After downloading the .zip file, I saved it at C:\Program Files\Apache\apache-maven-3.5.0.
  3. Then, I needed to set the path and environmental variables. You can refer to this guide.
  4. After the path is set, run mvn -version in Git Bash to verify the installation.
  5. 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 and mvn package, in the initial 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

MySQL

  1. Navigate to this tutorial for alot of information.
  2. 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.
  3. 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.

MySQL Workbench

  1. Navigate to https://dev.mysql.com/downloads/workbench/ for the download.
  2. Note that you may need to download the prerequisites for Windows.
  3. Once you're sure you have the prerequisites, fire up the .exe file
  4. Leave all the default setting to complete the installation.
  5. Open MySQL Workbench at the end of the installation and connect to the "localhost" connection with your password from the MySQL installation (above).

MariaDB

  1. Navigate to this webpage to learn how to set up MariaDB in addition to MySQL
  2. Download the MariaDB installer for Windows from https://mariadb.com/downloads
  3. 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.
  4. 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.
  5. 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.

Spring MVC

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

Python 2.7

  1. 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
  2. Run python --version from the command line (or GitBash) to see the installed Python version
  3. Run python -i in GitBash to check if the Python Interpreter is working
  4. Press Ctrl C to exit.

NodeJS

  1. Navigate to https://nodejs.org/en
  2. Click to download the latest stable (LTS version) of NodeJS
  3. After installation, run node in GitBash (or command line) to test if it worked
  4. Press Ctrl C to exit.

About

Notes to self on creating a developer environment in Windows 10

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages