/Pets

Git practice for iOS developers

Primary LanguageSwift

Pets

This project will let you practice creating a new project including creating a git repo for it, adding it to GitHub on your account, making changes, commiting them, and pushing them.

Instructions

Part 1 - Create Xcode Project

  1. Create a new Xcode project called "Pets".
  2. It should display a table view with a list of your current and past pets. (If you've never had pets, you can instead list your favorite animals.)
  3. Build the project using a UITableViewController with a "Basic" table view cell style.

Part 2 - Create a git Repo

  1. Using Terminal, cd to the directory containing your Xcode project.
  2. Initialize a new git repo using git init.
  3. Add all the files in the directory to the repo using git add.
  4. Commit the files using git commit.

Part 3 - Create a Project on GitHub

  1. Go to GitHub and create a new project called Pets. Do not initialize the repo with a README or .gitignore file.
  2. Follow the instructions shown on GitHub to add the GitHub repo as a remote origin to the repository on your computer.
  3. Push your Xcode project to GitHub.

Part 4 - Commit Changes

  1. Modify your project by adding a list of animals you'd like to have as pets (be as fanciful as you want).
  2. Add the modified file(s) to the git staging area.
  3. Commit the modified files.
  4. Push your changes to GitHub.

Part 5 - Verify

  1. Clone the repo from GitHub to a new folder on your computer (e.g. your Desktop)
  2. Open the newly-cloned repository's Xcode project.
  3. Build and run, making sure it works and shows all the pets you added, including those you added in Part 4.

Submit

Submit your project to your PM by sending them a link to your repository on GitHub via Slack DM (Direct Message).