Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
developwithpassion committed Feb 29, 2012
0 parents commit 4ea082b
Show file tree
Hide file tree
Showing 34 changed files with 4,084 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
*.html
.DS_Store
119 changes: 119 additions & 0 deletions README.md
@@ -0,0 +1,119 @@
#Develop With Passion® - .Net Developer BootCamp Setup

#Required Setup

The following is the setup that you will need to perform to configure all necessary prerequisites to be able to enjoy the week. If you have any questions, please do not hesitate to ask!!

##Make sure that you have configured windows to show all hidden files and folders

##Get setup at [Github](http://github.com)

* [Sign up](https://github.com/signup/free) for a free account at github.com. My recommendation is to use an all lowercase username.

##Install Ruby

* Install the latest version of Ruby from [here](http://rubyforge.org/frs/download.php/75127/rubyinstaller-1.9.2-p290.exe)
* Make sure you select the following options:
* Add Ruby Executables to your path
* Associate .rb and .rbw files with this Ruby installation
* Once the install has completed, verify your installation by opening up a command prompt and typing in: ruby -v. You should see:
* ruby 1.9.2p180 (2011-02-18) [i386-mingw32]

##Install Git for windows

1. Install the 1.7.4 version of git for windows from [here](http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.4-preview20110204.exe&can=2&q=)

* Configure according to the following screenshots:

![git_setup_part_1](http://github.com/developwithpassion%>/setup/raw/master/images/git_setup_part_1.png)
![git_setup_part_2](http://github.com/developwithpassion/setup/raw/master/images/git_setup_part_2.png)

##Setup your git ssh authentication key

1. Open up a git bash prompt
2. Enter the following command:
ssh-keygen -t rsa -C your_email_address
Accept the defaults for the remaining prompts (leave the passphrase blank).
3. Navigate to the folder where your ssh key was created (by default your profile folder C:\Users\your_user_name)
4. Open the file id_rsa.pub and copy the contents to the clipboard.
5. Login to your account at [github](https://github.com/login).
6. Navigate to your [ssh settings](https://github.com/account/ssh)
7. Click on the link: Add Another Public Key:
8. Give your key a title and paste the public key that is in your clipboard from step 4 into the Key text entry:

![ssh key entry](http://github.com/developwithpassion/setup/raw/master/images/add_ssh_key.png)

##Verify that your git ssh authentication works

1. Open up a git bash prompt
2. Enter the following command:
ssh -v git@github.com

3. You may be prompted to cache the server identity (type yes)
4. If you have setup your ssh settings correctly the bottom part of the command output should look similar to the following:

![successful authentication](http://github.com/developwithpassion/setup/raw/master/images/git_authentication.png)

##Update git configuration details

1. To ensure that you have settings that will work in the most optimal way for the class, I recommend downloading the following [file](http://github.com/developwithpassion/setup/raw/master/dev_tools/git/.gitconfig). Edit the file to make the necessary changes for your name and email address. Once you have changed the username and email address, copy the file to your home folder.


##Fork the project repositories for the week

1. Login to your account at [github](https://github.com/login)
2. Search for the username developwithpassion: (Username in screenshot is for example purposes only)<br>![Search for developwithpassion](http://github.com/developwithpassion/setup/raw/master/images/github_search_for_develop_with_passion.png)
3. Click on the developwithpassion user (screenshot is for example purposes only)<br>![developwithpassion user](http://github.com/developwithpassion/setup/raw/master/images/github_developwithpassion_user.png)
4. Click on the prep repository: ![repository](http://github.com/developwithpassion/setup/raw/master/images/github_shawaugp.png)
5. Click on the fork button to create your own copy of this repository <br>![fork](http://github.com/developwithpassion/setup/raw/master/images/github_fork.png)
6. Repeat steps 2-5 for the app repository.

## Checkout your local copies of the code

1. Create a folder named course (keep it all lowercase) at the root of your C: drive.
2. Open up a git bash prompt and navigate to your course folder.
3. Issue the following command from inside the course folder:

* git clone git@github.com:[your github user name]/prep.git prep

Assuming your github username is jp the command would look as follows:

git clone git@github.com:jp/prep.git prep

4. Issue the following command from inside the course folder:

* git clone git@github.com:[your github user name]/app.git app

Assuming your github username is jp the command would look as follows:

git clone git@github.com:jp/app.git app

5. Once you have completed steps 3 and 4 your course folder should look as follows:

![checked out directory](http://github.com/developwithpassion/setup/raw/master/images/checked_out_directory.png)


##Clone the supplemental setup repository

1. Open up a git bash prompt and navigate to your course folder.
2. Issue the following command:
git clone git://github.com/developwithpassion/setup.git setup
3. After the clone is complete your course directory should look as follows:<br> ![course_folder_after_setup_clone](http://github.com/developwithpassion/setup/raw/master/images/course_directory_after_setup_clone.png)


#Strongly Recommended Optional Setup

##Install TestDriven .Net

* Download and install the latest student version of [TestDriven.Net](http://testdriven.net/download_release.aspx?LicenceType=Personal)

##Resharper

1. Download and install the latest version of [ReSharper](http://www.jetbrains.com/resharper/)
2. Start visual studio at least once after installing R# so that the necessary configuration files are created.
3. Navigate to the following folder:
* C:/course/setup/dev_tools/resharper/

##Autohotkey

* Download and install the latest version of [Autohotkey](http://www.autohotkey.com/)
12 changes: 12 additions & 0 deletions dev_tools/autohotkey/caps_to_escape.ahk
@@ -0,0 +1,12 @@
;==========================
;Initialise
;==========================
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

;=================================
;Remap the caps lock key to escape
;=================================
CapsLock::Escape

78 changes: 78 additions & 0 deletions dev_tools/autohotkey/test_naming_mode.ahk
@@ -0,0 +1,78 @@
;=======================================================================================
;BDD Test Naming Mode AHK Script
;
;Description:
; Replaces spaces with underscores while typing, to help with writing BDD test names.
; Toggle on and off with Ctrl + Shift + U.
;=======================================================================================


;==========================
;Initialise
;==========================
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

enabledIcon := "testnamingmode_16.ico"
disabledIcon := "testnamingmode_disabled_16.ico"
IsInTestNamingMode := false
SetTestNamingMode(false)

;==========================
;Functions
;==========================
SetTestNamingMode(toActive) {
local iconFile := toActive ? enabledIcon : disabledIcon
local state := toActive ? "ON" : "OFF"

IsInTestNamingMode := toActive
Menu, Tray, Icon, %iconFile%,
Menu, Tray, Tip, Test naming mode is %state%

Send {Shift Up}
}

;==========================
;Test Mode toggle
;==========================
^+u::
SetTestNamingMode(!IsInTestNamingMode)
return


;==========================
;Handle Enter press
;==========================
$Enter::
if (IsInTestNamingMode){
SetTestNamingMode(!IsInTestNamingMode)
}
else{
Send, {Enter}
}
return

;==========================
;Handle Escape press
;==========================
$Escape::
if (IsInTestNamingMode){
SetTestNamingMode(!IsInTestNamingMode)
}
else{
Send, {Escape}
}
return

;==========================
;Handle SPACE press
;==========================
$Space::
if (IsInTestNamingMode) {
Send, _
} else {
Send, {Space}
}


Binary file added dev_tools/autohotkey/testnamingmode_16.ico
Binary file not shown.
Binary file added dev_tools/autohotkey/testnamingmode_disabled_16.ico
Binary file not shown.
23 changes: 23 additions & 0 deletions dev_tools/git/.gitconfig
@@ -0,0 +1,23 @@
[core]
autocrlf = input

[user]
email = git_email
name = git_name

[alias]
st = status -s
ci = commit
co = checkout
df = diff
dft = difftool
mgt = mergetool
lg = log -p
lol = log --graph --decorate --oneline
lola = log --graph --decorate --oneline --all

[diff]
tool = vimdiff

[push]
default = current

0 comments on commit 4ea082b

Please sign in to comment.