-
Fork this repository.
-
Add @makers-dev as a collaborator on the repository on GitHub.
-
Send the link in the "Copy Invite Link" drop-down on the collaborators page to @maryrosecook on Slack.
-
Make sure you use Ruby version
2.4.1
. To check your Ruby version, run the command below.
$ ruby -v
-
If required, use RVM to install version
2.4.1
. -
Install bundler. To do this, run:
$ gem install bundler
- Install the gems required by this repository. To do this, run:
$ cd path/to/root/of/this/repo
$ bundle install
-
Work through the numbered chapters (beginning with
/1_hello_world
). -
Work through a chapter.
-
When you've absorbed the content of the chapter thoroughly, get the quiz.
-
Complete the quiz. Instructions here.
-
If you get stuck and can't complete a quiz, contact @maryrosecook on Slack and she give you feedback to help you learn what you need to complete the quiz.
-
Once the quiz is complete, continue to the next chapter.
Your aim is to get through all the chapters, but you only move on from a chapter once you've completed the quiz.
-
Each question is in a separate file e.g.
1_hello_world/quiz1/question_1.rb
. -
A typical question file might look like this:
# Write a program that adds 7 to 5, multiplies that by 10, subtracts 2 from all that, divides all that by 4, adds 1,000,000 to all that and `puts`es the result.
# Your answer here.
-
To answer a question, type code that solves the question into the question file.
-
You can run the question file like a normal ruby program
e.g. ruby question_1.rb
.
- To check your answer for a question:
$ cd 1_hello_world/quiz1
$ rspec spec/question_1_spec.rb
- To check your answers for all the questions in a quiz:
$ cd 1_hello_world/quiz1
$ rspec
- Use git to commit and push your answers to your GitHub repo.
$ cd path/to/root/of/repo
$ rake submit_and_verify_quiz_answers github-username chapter-number quiz-number
$ (e.g. rake submit_and_verify_quiz_answers timmydev 1 1)
- You can only get a quiz after you've successfully submitted and verified answers for the previous quiz.
$ cd path/to/root/of/repo
$ rake get_quiz githubusername chapter-number quiz-number
$ (e.g. rake get_quiz timmydev 1 1)
important concepts or terminology are in bold.
Instructions for you to do something (an activity or exercise) look like this:
- An instruction for you
Activities are usually followed by a guide as to how I'd do it:
See how I'd do it
There's usually some code to execute in here. You can't generally copy-paste it though.
If something isn't directly related, but might be interesting, provide context, or more information, it'll be in a blockquote (like this).