Repository navigation
temporary
Arunadevi edited this page Jul 16, 2013
·
1 revision
- jdk 1.6 (http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html)
- Eclipse Indigo. (http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2).
- Eclipse plugins (using Eclipse marketplace) - egit - m2e-wtp : Maven Integration for Eclipse WTP (from github) - monja DB
- MongoDB (mongodb-win32-x86_64-2.0.6) http://dl.mongodb.org/dl/win32/x86_64
- Apache tomcat (apache-tomcat-7.0.23) http://tomcat.apache.org/download-70.cgi (Binary Distributions zip)
- Start Eclipse.
- Select File -> Import
- In the Import dialog, select Git -> Projects from Git. Select Next
- In the Select Repository Source screen, select URI. Select Next.
- In the Source Git Repository screen, in the URI field, enter
https://github.com/Coena/carmindz-heroku.git. Select Finish.
- Right click on carmindz project and select Properties.
- In the Properties dialog, select Java Build Path on the right pane. Select JRE System Library. Select Edit.
- In the Edit Library dialog, select Alternate JRE -> Installed JREs. Select the JDK 1.6 folder installed. Select Finish -. OK
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.
- In web.xml comment out the following to disable HTTPS:
<filter-mapping> <filter-name>HttpSecureFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> - In applicationContext.xml, uncomment the JavaMailSender bean, and comment out the SendGridMailSender bean.
- Get Captcha keys for the machine’s IP address/ “localhost” from: https://www.google.com/recaptcha/admin/create
- Set the following system variables with the keys obtained from the above website: * recaptcha.privateKey 6LeK...xCQKGN * recaptcha.publicKey 6LeKEd...36e * recaptcha.registeredDomain localhost
- Restart the computer
- Right click on pom.xml under the Carmindz project. Select Run as -> Maven Install.
- carmindz.war is created in the target directory. Copy this war to the webapps folder of the Tomcat 7 installation.
- 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\ - Create folder data under mongo\bin
- Run start.bat
- Start Tomcat
- Open http://localhost:8080/carmindz from web browser.
- Spring MVC - spring-recipes-a-problem-solution-approach-second-edition.pdf
- HTML5 - http://www.w3schools.com/html/html5_intro.asp
- CSS
- Javascript