Managing software development
- Install Git Desktop from https://desktop.github.com/
- Open Git desktop. Clone emma1089/techKnights and give the path you want to locate the code.
- Install Eclipse IDE for Java EE Developers from https://eclipse.org/downloads/
- Open the Eclipse IDE
- Go to help ->marketplace ->
- nstall Spring IDE
- Maven Integration for Eclipse
- Open Git desktop. Clone emma1089/techKnights and give the path you want to locate the code.
- Install MySQL from https://www.mysql.com/downloads/
- In MySQL Workbench add connections.
</p>
</p>
<li><h4>Tomcat Server Installation and setup:</h4></li>
<ol>
<li>Install Tomcat from https://tomcat.apache.org/download-70.cgi</li>
</ol>
<p><h5>Possible Errors:</h5>
This installation is straight forward. If you get any installation error.
<h5>Solution:</h5>
Make sure the main instant of tomcat is stopped.
Add instance of Tomcat to Eclipse Follow https://tomcat.apache.org/tomcat-9.0-doc/index.html for any errors.
<p><h5>Possible Errors:</h5>
This installation is straight forward. If you get any installation error.
<h5>Solution:</h5>
Follow http://dev.mysql.com/doc/ for any errors.
</p>
- Import the WHAM project in Eclipse IDE.
- To test the project: Open project, either build using maven or run test by WHAM->src/test/java->Run TestSuite.java
- To run the project: Right click on the project folder -> ‘Run as -> Run on server’ to run the project.
- You can run the project on the browser of your choice.
- Go to localhost http://localhost:8080/
<h5>Solution:</h5>
Check if your Tomcat server is installed properly.
Follow https://tomcat.apache.org/tomcat-9.0-doc/index.html for any errors.
Check if your MySQL is installed and connected properly. Follow http://dev.mysql.com/doc/ for any errors.
Check the installation of Spring/Hibernate Check the pom.xml file for username, password and connection details. Check the hibernate.cfg.xml file
</p>
- Click on File -> Export -> WAR file. Give the location of WAR file.
- Clone the repository of the hosted project on to local machine in a folder, lets say “wham-proj” using:
git clone ssh://565e1c047628e17f38000024@techknights-whamapp.rhcloud.com/~/git/techknights.git/
- Remove the src folder and only let readme and webapps folder remain
- (step 2 and 3 only needs to be done once)
- Add the WAR file from step one in webapps folder
- In terminal, navigate to folder where cloned repo is(eg wham-proj) after
- Commit the changes using command
- Push the code into the server.
git add
git commit –m “Add description of commit”
git push