There are two parts to your lab assignment, and each is in a different assignment in Canvas:
Put finishing touches on your About Me project and get it deployed. The more time you spend with this, the better you'll get at CSS, but keep in mind that you also have readings to do and need to get some rest and relaxation in as well! The next project we will start is challenging, so be sure to come into it refreshed and ready.
Today in lab you will fork and clone a GitHub repo, and then create solutions to some code problems such that your solutions pass the included tests.
Be sure to follow instructions carefully.
To get started on this lab:
- Fork this repo, and then clone that forked version.
- Check out a new branch to start working on problem 2 (we already did problem 1 together).
- Once you've finished that problem, un-comment the test for that problem to ensure that it passes.
- Add, commit, and push to your problem 2 branch on GitHub.
- Make a pull request on GitHub and merge those changes into your master branch on GitHub.
- Check out your master branch on your computer.
- Pull your master branch from GitHub to your own computer.
- Go back to step 2, and repeat for the next problem.
The specific git steps required, starting on the master branch:
git checkout -b new-branch-name
- edit your code, make the changes needed to solve the problem
git add .
git commit -m "finished that problem"
git push origin new-branch-name
- On GitHub, make the pull request from
new-branch-name
tomaster
. Merge that branch. - In your terminal,
git checkout master
git pull origin master
- Repeat from step 1!
Here are a couple of things to keep in mind:
- Place no function calls in your code, unless inside of another function. Everything should be run by hand from the console. This is to give you additional practice using the console and practice efficient app-switching processes.
- Create a new branch for each code problem, and merge each branch into master on GitHub (and then pull back into master on your laptop!) when the problem is completed. Do the problems in order. Don't forget to pull the updated master branch from GitHub into your local master branch each time you merge a pull request, then make a new branch from master for the next problem.
- Although this is an individual lab assignment, do feel free to (heck, it is encouraged that you) collaborate and work in pairs or groups.
You are being given starter code for today, in the index.html
and app.js
files inside of this directory. The success of your code will be determined by whether it passes tests that are in the tests.js
file. You do not need to do anything with tests.js
, though you should take a look at it to see how it works.
Submission instructions are in the Canvas assignment.