/dotnet_bootcamp_setup

disconnected fork of @developwithpassions's (JP Boodhoo) dot net bootcamp setup repo; his went missing somehow.

Primary LanguageAutoHotkey

#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

##Configure Powershell

  1. Make sure you are running Powershell 2.0.
  • Open up a powershell prompt
  • Type in $hostname.version
  • You should see a Major version of 2 like the following screenshot:
    powershell version
  1. Enable execution of local scripts
  • Open up a powershell prompt
  • Type in the following command: set-executionpolicy RemoteSigned
  • At the prompt that follows, make sure you type in a capital Y as in the following screenshot:
    powershell set_executionpolicy

##Get setup at Github

  • Sign up 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
  • 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
  • Configure according to the following screenshots:

git_setup_part_1 git_setup_part_2

##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.
  6. Navigate to your ssh settings
  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

##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

##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. 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
  2. Browse to https://github.com/pjboudrx/daxko_app, and click "fork." Select "Fork to (YourUsername)" if prompted.
  3. Browse to https://github.com/pjboudrx/daxko_prep, and click "fork." Select "Fork to (YourUsername)" if prompted.
  4. Browse to https://github.com/pjboudrx/dotnet_bootcamp_setup, and click "fork." Select "Fork to (YourUsername)" if prompted.

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 repository name].git prep

    Assuming your github username is jp and the prep repository is named bootcamp_prep, the command would look as follows:

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

  1. Issue the following command from inside the course folder:
  • git clone git@github.com:[your github user name]/[app repository name].git app

    Assuming your github username is jp, and the app repository is named bootcamp_app the command would look as follows:

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

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

checked out directory

  1. Issue the following command from inside the course folder:
  • git clone git@github.com:[your github user name]/[setup repository name].git setup

    Assuming your github username is jp, and the setup repository is named bootcamp_setup the command would look as follows:

    git clone git@github.com:jp/bootcamp_setup.git setup

  1. After the clone is complete your course directory should look as follows:
    course_folder_after_setup_clone

#Strongly Recommended Optional Setup

##Install TestDriven .Net

##Resharpe

  1. Download and install the latest version of 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