- Make sure you're logged in to your account on GitHub.
- Go to https://github.com/bethadele/lab2-pdx-beg and click on the "Fork" button in the upper right. This will create a new copy of the repo, one that's associated with your account.
- Copy the link in the "HTTPS Clone URL" box on the right. Tip: that link should have your username in it, not mine.
- Open your terminal and navigate to your projects directory.
- Run this:
git clone paste-in-that-url-here
cd lab2-pdx-beg
- Run
npm install
. - Your assignment is in lab2.js. There are detailed instructions in the
comments. Be sure to read everything. Run lab2.js with
node lab2.js
. - Before you turn in your assignment, run
./node_modules/.bin/grunt
(or justgrunt
, if you have it installed globally) to check for jshint and jscs errors/warnings. Fix all the errors.
Submit a link to a pull request. To do this, do the following:
- Open your terminal and navigate to the lab2-pdx-beg directory.
- Check out the existing branch with your first name:
git checkout -b yourBranchNameHere
- Stage all your files for the commit:
git add .
(Yes, you need that period.) - Make sure that you're on the correct branch, and that the files are indeed staged:
git status
- Commit the files:
git commit -m "a descriptive message of what you've done goes here"
- Push the commit to a branch on GitHub:
git push origin yourBranchNameHere
. It should ask you for your GitHub username and password. - Go to your repo on GitHub. Look for the green button that says "Compare and Pull Request"
- In the grey area near the top of the screen, there should be two dropdowns. One should say "base", and the other "compare". From the "base" dropdown, select Beth's repo and the branch with your name. From the "compare" dropdown, select your forked repo and the name of your branch (if it's not already selected).
- Click the green "Create Pull Request" button. Then, copy the url and submit that in Canvas. If it makes you upload a file, upload your lab2.js file.