Step 1: Install Linux.
Just kidding. Below are step-by-step instructions for getting up and running, you crazy masochist.
- Install Ruby (you'll need this to interact with the Learn platform)
- Download the Windows - Ruby 2.2 Rails Installer
- Run the installer. It should finish without a hitch.
- You can verify the installation by opening the newly installed Git Bash program.
- Be sure to add your SSH key (which should have been automatically copied to your clipboard) to your GitHub account.
- You can make sure that everything works by cloning this repo over SSH.
- Set up your SSL certificates
- Open PowerShell (it should be installed on your system by default).
- Enter
Invoke-WebRequest http://curl.haxx.se/ca/cacert.pem -OutFile C:\RailsInstaller\cacert.pem
at the command prompt - Update your environment variables
- Install the appropriate JDK8 for your system.
- Add an environment variable (you did keep the dialogue open, right?) called
JAVA_HOME
that points to your installed JDK. (It should point to something likeC:\Program Files\Java\jdk1.8.0_74
.) - Edit your
Path
(orPATH
) environment variable. (If you see twoPATH
s — e.g., one for "system" and one for "user" — just update the userPATH
.) This is a semicolon-separated list of locations where the command prompt will attempt to find executables. You'll want to addJAVA_HOME\bin
to the end:C:\path\already\set;%JAVA_HOME%\bin
.
- Add an environment variable (you did keep the dialogue open, right?) called
- Download and unzip Ant. (Just download the
zip
'd binary version.)- Unzip the archive to a directory that you'll remember (maybe
C:\Program Files\Ant
). - Add an environment variable called
ANT_HOME
that points to the unarchived directory. - Edit your
Path
environment variable so that it includes%ANT_HOME%\bin
. (Again, if you see twoPATH
s — e.g., one for "system" and one for "user" — just update the userPATH
.)
- Unzip the archive to a directory that you'll remember (maybe
- Install
learn-test
- Open up the Git Bash Terminal and type
gem install learn-test
. This is the tool that you will use to run the tests and submit work to the Learn Platform - Now when you're ready to check the results of a lab, you can run
learn-test
from the lab's directory.
- Open up the Git Bash Terminal and type
From here on out, whenever a lab or README asks you to open a terminal, you'll want to open Git Bash. You can just search for it using Windows' search feature and it should show up.
That's it! You should now be able to run learn-test
in any of the labs and observe your progress on Learn.co. Happy coding!
View Getting Started With Learn (Windows) on Learn.co and start learning to code for free.