Posts

Showing posts from July, 2020

What- Why - How Maven

Image
WHAT is MAVEN Introduction : Maven is the build management tool for Java projects written in XML language. pom.xml file in the application has the maven build information. This file gives the entire information about the project and its dependencies.    WHY to use MAVEN Maven makes the developers work easy while creating reports, checks, build and test automation steps.   Convention over Configuration : Maven helps the developers by providing a default build process which is termed as convention over configuration.  Maven creates default project structure. For the project structure, developer doesn't have to define anything in pom.xml. Default project has src with main and test folders,  target folders. src folder has the java class files. test folder has the test class files. resource folder has the configuration details of the project.   HOW to use MAVEN If an IDE is used, it provides a default maven with it. For all the projects in this blog, I'm current...

Configuring IntelliJ IDE for Java Projects

IntelliJ IDEA is an integrated development environment written in Java for developing computer software. Download IntelliJ Developer edition which is IntelliJ CE Now Configure IntelliJ: Step 1:  Click on IntelliJ IDEA application. Step 2: If this is your first time, it open a welcome screen. Click on Create New Project .  Otherwise, from the main menu, select  File | New | Project . Step 3: In the New Project wizard, select Java from the list. Step 4: To create a Java project, sdk file is needed. If it already in the system, select Add JDK and specify the path to the JDK home directory.  Note: All the projects in this blog are by using JDK 11 If you don't have the necessary JDK on your computer, select  Download JDK . In the next dialog, specify the JDK vendor (for example, OpenJDK), version, change the installation path if required, and click   Download . This takes you to the next step of creating a Java application which can be done from https://beginne...

Getting started with Spring Boot Application and pushing it to Github

Image
Part 1: Creating a SpringBoot Application Introduction: Spring boot is an open source most popular Java Framework which provides flexibility, efficiency, security, ease to the Java Developers. Things you need: IDE JDK 1.8 or later Gradle or Maven - Don't have to install it. IntelliJ provides a default version This project is currently using IntelliJ CE as IDE, Java 11 JDK file and maven as dependency tool. Step by step process to create a simple SpringBoot Application: 1 . Open the IntelliJ IDE. Click on File -> New -> Project 2. Select the project type as Spring Initializer 3. Now, it's time to give it a name.  Group :  specifies the id of the project group. It is actually a set of directories path in which the artifact resides. Artifact : specifies the id of the project. It is actually the project name. Type : Could be maven or gradle. Let's start with a maven project. Version : Could update the version of the project. It is by default set to 0.0.1-SNAPSHOP Group a...

Getting Started with Git and Github

Introduction:  Git  is a simple open source version control system. It stores the information of anything with different versions. Mostly, it is used to store the source code of any application. Other version control softwares include Subversion, Bitbucket. The main use of this version control system is to store different updates of the same project with different versions at the same place. It also helps when multiple people are working on the same project but on a different aspects associated to that project. This is just a command line tool. Github  is a git repository hosting service. It is a web based graphical interface that provides version control and source code management features of Git. Workflow of Git: Any local repository (any project stored locally) consists of three trees maintained by git. They are: Working Directory  - This holds the actual files.  Index  - This acts as a staging area. This is kind of storage space between the Working Dire...

Cloning a Repository From Github

If this is your first time creating a project in Git, I would suggest you to look at: https://divyateja-meraki.blogspot.com/2020/06/getting-started-with-git-and-github.html If a remote repository already exists in Github, it can be downloaded through below steps: 1. On the Github, navigate to the main page of the repository. 2. Click on the Repository name that you would like to download. 3. You will see an option:  Clone  in that page. 4. When you click on clone, you will have an option to download it as a zip file or to copy the ssh or https url. 5. To clone the project using the url, copy the ssh or https url and open the terminal in your system. 6. Navigate to the location/directory where you want to download the project. 7. In the terminal, type  git clone  followed by the url you copied in the Github. 8. Press enter and this would clone the project. This would also ensure connectivity between local repository and remote repository.  NOTE: If the project is...