INFO 5001 Application Modeling and Design - Instructions & Guides

GitHub Classroom Guide for INFO5001

What is GitHub Classroom? 🎓

GitHub Classroom is a teaching tool that allows instructors to distribute coding assignments, provide feedback, and manage submissions through GitHub. It automates repository creation, access control, and provides a streamlined workflow for programming courses.

Benefits of GitHub Classroom 🌟


Getting Started with GitHub Classroom 🚀

Prerequisites


Accepting Assignments

Steps for Accepting Your First Assignment

  1. Access the Invitation Link

    • You’ll receive assignment links via Canvas announcements or email
    • Click the link to open the GitHub Classroom assignment page
  2. Join the Classroom

    • If this is your first assignment, you’ll be asked to join the classroom
    • Select your name from the roster to link your GitHub account

    Join Classroom

  3. Accept the Assignment âś…

    • Click the “Accept this assignment” button
    • GitHub Classroom will create a personal copy (repository) of the assignment for you

    Accept Assignment

  4. Wait for Repository Creation ⏳

    • GitHub will automatically create your assignment repository
    • When ready, you’ll see a link to your new repository

    Repository Created

  5. Open the Repository đź”—

    • Click on the link to open your personal assignment repository
    • This is where you’ll work on your assignment

Working on Assignments Locally

Cloning Your Assignment Repository

  1. Copy Repository URL

    • On your assignment repository page, click the green “Code” button
    • Copy the HTTPS URL

    Clone URL

  2. Clone in VS Code

    • Open VS Code
    • Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open Command Palette
    • Type “Git: Clone” and select it
    • Paste the repository URL and select a local folder to store the project

    OR

    Clone using Terminal đź’»

    git clone https://github.com/classroom-org/assignment-your-username.git
    cd assignment-your-username
    code .  # Opens the project in VS Code
    
  3. Open the Project

    • VS Code will open the cloned repository
    • You can now see all the assignment files and start working

Completing and Submitting Assignments 📤

The Git Workflow for Assignments

  1. Make Changes to Code

    • Implement your solution in the provided files
    • Create new files if needed
  2. Save Your Changes đź’ľ

    • Save your files in VS Code (Ctrl+S or Cmd+S)
  3. Stage Your Changes âž•

    • In VS Code, open the Source Control panel (click the branch icon in the sidebar)
    • Click the “+” next to modified files to stage them

    OR using Terminal:

    git add .  # Stages all changes
    
  4. Commit Your Changes

    • Write a meaningful commit message (e.g., “Implemented factorial function”)
    • Click the checkmark icon to commit

    OR using Terminal:

    git commit -m "Implemented factorial function"
    
  5. Push to GitHub

    • Click the “…” in the Source Control panel and select “Push”
    • OR click on the sync icon in the status bar

    OR using Terminal:

    git push origin main
    
  6. Verify Submission

    • Visit your GitHub repository page to confirm your changes are visible
    • Check for any automated feedback or tests that have run

Best Practices for GitHub Classroom 🌟

Do’s ✅

Don’ts ❌


Troubleshooting GitHub Classroom

Common Issues and Solutions


Additional Resources


Remember: GitHub is not just a tool for this class—it’s an industry-standard platform that will benefit your career. Learning it well now will pay dividends later! 💯