SNIPPET INSTALLATION GUIDE

System Requirements

Hardware

  • CPU at least Intel pentium III or higher
  • 512Mb Ram or higher
  • 80Gb Hard disk drive or more

Software


Setup Environments

Setup Maven

  • Download maven 2.0.10 at  http://maven.apache.org/download.html, unzip it to a folder, say, c:\maven.
  • Right click to My Computer -> Advanced -> Environment Variables. In System variables dialog, double click on “path” variable, append “c:\maven\bin” to the variable value, click ok to apply.

Download and install JDK 5.x

  • Download JDK 5.x at  http://java.sun.com/javase/downloads/index_jdk5.jsp, install it to “C:\Program Files\Java\jdk1.5.0_14” for example.
  • Right click to My Computer -> Advanced -> Environment Variables. In System variables dialog, click on “new”, enter variable name: JAVA_HOME , variable value: C:\Program Files\Java\jdk1.5.0_14 ,click ok to apply.
  • Still in In System variables dialog, double click on “path” variable, append “C:\Program Files\Java\jdk1.5.0_14\bin” to the variable value, click ok to apply.

Download and install MySQL

  • Download mysql at  http://dev.mysql.com/downloads/mysql/5.1.html, install it to “C:\mysql”
  • Right click to My Computer -> Advanced -> Environment Variables. In System variables dialog, double click on “path” variable, append “C:\mysql\bin” to the variable value, click ok to apply.
  • Open cmd (start => run => cmd) and type these commands:

C:\somewhere>mysql –uroot –pyourpassword
Mysql>create database snippetrepobrowser;
Mysql>use snippetrepobrowser;
Mysql>source ../source_package/sql/snippet_repo_browser_mysql.sql;
Mysql>exit

Download tomcat

  • Download tomcat at  [[BR]
  • Extract tomcat package to a folder, C:\Tomcat for instance


Install Snippet Repo Browser from source code

Config database URL

  • Open …/src_package/src/main/webapp/WEB-INF/classes/mvncore.xml, find

<database_url>jdbc:mysql://localhost/snippet?useUnicode=true&amp;characterEncoding=utf-8&amp;useOldUTF8Behavior=true</database_url>

  • Replace localhost/snippet with localhost/snippetrepobrowser or any database name which you have created with imported script.

Build war file

  • Open cmd, navigate to source folder and type mvn:install
  • After complete, copy file your …/source_folder/target/snippetrepobrowser.war into your tomcat webapps folder (C:\tomcat\webapps)
  • Start mysql server via windows service or manually by running C:\mysql\bin\mysqld.bat
  • Start tomcat server (run C:\tomcat\bin\startup.bat).
  • Open your web browser and type:  http://localhost:8080/snippetrepobrowser to start browsing your site.


Install Snippet Repo Browser from binary package

  • Copy file snippetrepobrowser.war into your webapps folder.
  • Start mysql server via windows service or manually by running C:\mysql\bin\mysqld.bat
  • Start tomcat server (run C:\tomcat\bin\startup.bat).
  • Open your web browser and type:  http://localhost:8080/snippetrepobrowser to check if application is running properly or not, if not, go to next step.
  • Open C:/tomcat/webapps/snippetrepobrowser/WEB-INF/classes/mvncore.xml, find <database_url>jdbc:mysql://localhost/snippet?useUnicode=true&amp;characterEncoding=utf-8&amp;useOldUTF8Behavior=true</database_url>
  • Replace localhost/snippet with localhost/snippetrepobrowser or any database name which you have created with imported script.

1.1.2-pro © 2008-2009 agile42 all rights reserved (this page was served in: 0.16000 sec.)