temporary - Arunadevi/try_git GitHub Wiki

Setting up the development environment

  1. jdk 1.6 (http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html)
  2. Eclipse Indigo. (http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2).
  3. Eclipse plugins (using Eclipse marketplace) - egit - m2e-wtp : Maven Integration for Eclipse WTP (from github) - monja DB
  4. MongoDB (mongodb-win32-x86_64-2.0.6) http://dl.mongodb.org/dl/win32/x86_64
  5. Apache tomcat (apache-tomcat-7.0.23) http://tomcat.apache.org/download-70.cgi (Binary Distributions zip)

Downloading Source

  1. Start Eclipse.
  2. Select File -> Import
  3. In the Import dialog, select Git -> Projects from Git. Select Next
  4. In the Select Repository Source screen, select URI. Select Next.
  5. In the Source Git Repository screen, in the URI field, enter https://github.com/Coena/carmindz-heroku.git. Select Finish.

Eclipse Project Settings:

  1. Right click on carmindz project and select Properties.
  2. In the Properties dialog, select Java Build Path on the right pane. Select JRE System Library. Select Edit.
  3. In the Edit Library dialog, select Alternate JRE -> Installed JREs. Select the JDK 1.6 folder installed. Select Finish -. OK

Settings for Local Machine access:

Carmindz application uses HTTPS for the Register, Login actions. Hence, when the application is required to be accessed from the local machine, HTTPS should be disabled. Also, when not deploying on Heroku, the SendGridMailSender mail API cannot be used. Instead the JavaMailSender should be used.

  1. In web.xml comment out the following to disable HTTPS: <filter-mapping> <filter-name>HttpSecureFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
  2. In applicationContext.xml, uncomment the JavaMailSender bean, and comment out the SendGridMailSender bean.

Getting Captcha keys:

  1. Get Captcha keys for the machine’s IP address/ “localhost” from: https://www.google.com/recaptcha/admin/create
  2. Set the following system variables with the keys obtained from the above website: * recaptcha.privateKey 6LeK...xCQKGN * recaptcha.publicKey 6LeKEd...36e * recaptcha.registeredDomain localhost
  3. Restart the computer

Tomcat and Mongo

  1. Right click on pom.xml under the Carmindz project. Select Run as -> Maven Install.
  2. carmindz.war is created in the target directory. Copy this war to the webapps folder of the Tomcat 7 installation.
  3. Create file start.bat with the following contents under mongo\bin : mongod.exe --dbpath C:\Users\Aruna\coena\dev\MongoDB\mongodb-win32-x86_64-2008plus-2.0.6\bin\data\
  4. Create folder data under mongo\bin

Starting the application

  1. Run start.bat
  2. Start Tomcat
  3. Open http://localhost:8080/carmindz from web browser.

Basic learning material:

  1. Spring MVC - spring-recipes-a-problem-solution-approach-second-edition.pdf
  2. HTML5 - http://www.w3schools.com/html/html5_intro.asp
  3. CSS
  4. Javascript