Cloning existing git project from Git Hub - API Practice Project


Before proceeding, Java, Maven, Ecipse and Git should already be installed in your system, follow below steps for same:

1. Create 2 folders in your computer, one for git project and another one for eclipse working directory as shown below:
2. Now go inside Git Project folder and do right click as shown below:
3. Here you select GIT Bash Here option, the one highlighted in above screen then you will get prompt with below screen:
4. Now in the above screen i.e. Git Bash, type git clone https://github.com/KKR-Spring/api-PracticeProject.git and hit enter button as shown in below snapshot:
Also, Path for GitHub: GitHub
5. After hitting enter button in above screen, the project will start getting download. Once download will get completed then you will see the project folder as highlighted in below screen:
6. Now go inside the downloaded project's folder(highlighted in above screen) and you will see the below files:
7. Here you can see one pom.xml file and it means that it is a maven project. 8. Now you launch the eclipse in your computer and point working directory that we have created in step 1 i.e. Eclipse Working Directory as shown below:
9. Now click on OK button and you will get prompt with below screen:
10. Now uncheck the checkbox highlighted at right bottom screen shown above and close this Welcome tab. After closing this welcome tab you will get navigated to below screen:
11. Now we will start importing the downloaded project from git hub to eclipse. Firstly click on File and select Import option as shown below:
12. Now Type Maven in the edit box and select Existing Maven Projects option, as highlighted below:
13. Now click on Next button in above screen and provide the downloaded project's path i.e. the folder discussed above in 6th step: The soon you will provide the project's folder location, you will see pom.xml file appears automatically:
14. Now click on Finish button in above screen. The soon you will click on Finish button, you will start observing Building workspace at bottom right corner of screen and project will get added to eclipse as highlighted in below screen shot:
15. Once building workspace will get complete then you will get error icon in your project. Here you have to right click on project(i.e. kr folder) and select Maven>Update Project as highlighted below:
16. When you will click on Update project you will get prompt with below screen. here you select the checkbox for Force Update of Snapshots/Releases as highlighted below and click on OK button.
17. After clicking on OK button, you will see Updating Maven Project is in progress at bottom right corner of the screen. Here it is downloading all the required dependencies defined in pom.xml file.
18. For the first time it might take too long but afterwords it will not take that much time. 19. Once Updating Maven Projects gets completed then error in the project will go off. Even if it is there then don't worry just expand src/main/java>com.littlehelpbykr.kr> then right click on KrApplication.java file> select Run As> 2 Java Application as highlighted below:
20. After running it as java application, you will see something like below in Eclipse console, as highlighted below:
21. Now your project is Up and running. Ypou can hit all the APIs explained in videos and it will work.

Comments

Popular posts from this blog

Prerequisite/Setup for Automation-Selenium/Appium/API using JAVA Maven Project