http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.3.1-preview20101002.exe&can=3&q=
- Read - http://help.github.com/ (I generally use the https protocol fyi), You needn't necessarily use the key pair right off the bat. You can do that later.
- Read the "Everyday git" section under http://help.github.com
- Fork the trevershick/jook project
Clone your new project locally:
git clone https://<username>@github.com/vijaysivaji/jook.git
Clone the drawers project:
git clone https://<username>@github.com/vijaysivaji/drawers-parent.git
- Create a branch called 'playground' on your newly forked project
git branch playground
List the available branches:
git branch
> * master
> playground
Switch your brach to playground:
git checkout playground
Create a test file:
notepad test.txt
Add it to your changeset:
git add test.txt
Commit it to your local repository:
git commit
Push your branch up to the remote repository:
git push origin playground
*Note - everything is in your local repository until you push it up.
Switch back to the master branch and clean up:
git branch
> master
> * playground
git checkout master
git branch
> * master
> playground
# remove the branch from the local repository
git branch -D playground
# remove the branch from the remote repository
git push origin :playground
http://dev.mysql.com/downloads/mysql/
- Run the install, let it run as a service.
create the jook database:
mysqladmin -u<username> -p<password> create jook
setup the jook user:
mysql -u<username> -p<password> jook grant all privileges on jook.* to 'jook'@'localhost' identified by 'jook'
load the data:
# while still in mysql source src\data\initial_data.sql # hopefully all goes well.
! Steps not listed here Use the name "Apache tomcat 6.0 on JDK 6" (it will make things easier)
The JGit and EGit plugins for Eclipse don't work very well with private repositories on github. It works fine with public repositories though.
It's better to use git from the command line to learn it anyhow..
- In Eclipse do File>Import>Maven...Existing Maven Projects
Choose your project root that you cloned above and import all the projects.
- You may see errors in the jook-webapp project...
Right click the project and choose Properties Select "Apache tomcat 6.0 on JDK 6" for the Targeted Runtime.
- Repeat steps 1 & 2 for drawers-parent
- Create a server
add jook-ssodevhack, jook-webapp and jooktest to the server ensure the paths in the modules tab are /sso /jook and /jooktest change the server to 'Serve Modules without Publishing'
- Setup the server.xml for jook
open server.xml copy in jook/src/config/server.xml into the GlobalNamingResources don't forget to copy mysql connector driver into <tomcat_home>/lib or alternately open the launch configuration for your new server and add the mysql-.jar to the user classpath entries. ( if you run a 'mvn compile' from the root jook directory, the mysql-.jar files will be copied into jookfilestargetdependency )
Note: ensure that the path of your Web Modules are set to the following
- Path: /jook
- Path: /jookTest
- Path: /sso
- Path: /drawer-myapps
- Path: /drawer-feedback
Navigate to http://localhost:8080/jooktest
Navigate to http://localhost:8080/jook