Day 1: Environment

  • Install and configure the software in the previous section.

  • Create GitLab account if you dont have one.

  • Create a repository named java-sde1-training.

  • Clone the repository to your local machine using TortoiseGit, I normally clone my projects to d:\source, to easily find them.

  • Create Maven Project and set the project path to be in the above cloned folder.

  • Create Java class in your project, with the following contents:

package com.jkframework.training.

public class Hello{
	public static void main(String args[]){
		System.out.println("Hello from uncle Jalal");
	}
}
  • Push your work to GitLab.

To avoid pushing IDE specific files to the Git repository, it is good idea to create .gitignore at the root of your project with the following contents:

.factorypath
.project
.classpath
target
.settings
*.db
logs

This will hint the Git client (TortoiseGit) in our case to ignore these files and folder for the version control process.

Eclipse has also nice Git integration, its good idea to consider it for more efficient development.