Who's Who in FCC OKC and Techlahoma
This game is a great way to familiarize yourself with javascript objects, and get to know the great community in Techlahoma!
To add yourself:
- Fork the repo in Github
- Once you have forked the repo, clone it down locally to your computer
git clone [email protected]:MyGitHubUserName/techlahoma-whos-who.git
- In your favorite IDE or text editor, open the
people.js
- Add yourself to the people variable!
- Create a new empty object in the
people array
, like this{}
- Inside your empty object, add your first property-
"firstName":
, after that put your name.- Your object should look like this
{"firstName": "Tom"}
- Your object should look like this
- Next, add a comma after your property declaration, it should look like this:
{"firstName": "Tom",}
- Add the rest of your properties! These properties should be
lastName, picture, githubUsername
- NOTE: We can keep the
picture
property empty for now. We'll add picture in the following steps.
- NOTE: We can keep the
- Your people object should now look something like below.
{"firstName": "Tom", "lastName": "Bombadil", "picture": "HandsomeTom.jpg", "githubUsername": "OldManWillow"}
- Create a new empty object in the
- Add a photo of yourself!
- Open the pictures directory, which can be found at
techlahoma-whos-who/Pictures
- Add a jpg of yourself to this directory.
- Once you've added that jpg, make sure to reference it on picture object you made for yourself in
people.js
.- i.e.
{... "picture": "HandsomeTom.jpg" ...}
- i.e.
- Open the pictures directory, which can be found at
- Create a PR and get yourself added!
- Fork the repo in Github
- Once you have forked the repo, clone it down locally to your computer
git clone [email protected]:MyGitHubUserName/techlahoma-whos-who.git
- Open
index.html
in your preferred browser. You should see the who's who game if everything went well!