Are We Allowed Upload Coding Class Assignments Onto Github
1. Introduction
Submitting Coding Assignments and Using GitHub
Note:If you are hither as part of a course, please read on. Otherwise, submitting coding assignments is non required.
Most assignments that follow are various inaccessible web folio widgets that we will ask yous to make accessible by rewriting their code (HTML, CSS, or JavaScript). If you are participating here as part of a grade, y'all will need the link to a alive web page with your solution. Before the code is reviewed, the page will exist checked for accessibility (using ChromeVox and other tools).
It is your decision where you lot want to host the pages that you will submit for review. If you have your own domain and server space, yous tin upload completed assignments there and submit the URL. Another selection is to submit the URL of a file on GitHub to GitHack (https://raw.githack.com), then submit the URL to the output it generates every bit your assignment submission.
Experience costless to download the activity files from our repository now, or if you are going to use GitHub, keep reading for instructions on how to fork information technology to your ain account.
If you don't have a website, we recommend using GitHub as your platform for submitting assignments. Below we draw GitHub and GitHub Pages. If yous are familiar with using GitHub or yous accept your own spider web server, you lot can skip the rest of this page or just scan information technology.
Prepare Up a GitHub Account
If you practise non already have 1, you should create a GitHub account. For any programmer, it is an invaluable tool for sharing and collaborating on code evolution. A GitHub account is free. Though you can download the activity files from GitHub, and so unzip them and work from a local directory on your hard drive, we recommend creating a fork of the activeness files to your own account and cloning your fork into a local directory. Follow the link below to set up an account, and so read on.
Set Upward a Local Git Environment
Depending on the operating system you are using, at that place are specific versions of Git for each platform. Yous may choose to utilize a Git client, or you may choose to use Git from the control line. Here nosotros will nowadays command line options. If you choose to employ a client, meet the documentation associated with the client for details on cloning, committing, pulling, and pushing.
For Windows and Mac users, if you are going to use a client instead of working from a command line, we advise installing SourceTree. GitHub Desktop is a skilful culling if you prefer to utilize an open source client. Feel gratuitous to choose another Git client if you like.
For Linux users you can apply your system'due south package manager to install Git for control line utilize. On Ubuntu, for instance, at the control prompt you can run apt-get
as the root user to install Git:
#> sudo apt-get install git
Suggested Reading: For more virtually Git setup on Ubuntu see the tutorial on DigitalOcean.
If you lot are using some other Linux distribution, use Google to notice details on installing Git on your version of Linux.
Consignment Submissions via GitHub
Nigh of the assignments that follow require submitting a URL to a publicly attainable version of the widgets that are the focus of the activities.
If yous need a place to mail service your activity assignments, GitHub Pages can be a practiced selection. Or, you may just prefer to use GitHub Pages to organize your files so they are non cluttering your web server. You will create a fork of the activeness files (learnaria.github.io), rename the repository to create your own version, and either upload it to a site of your choosing or use GitHub Pages. The GitHub Pages option is outlined here.
If you choose to use GitHub Pages, follow these steps to create a copy of the files under your ain GitHub account.
-
- Logged into GitHub, find your way to the action files, and fork that repository. The fork push button is at the superlative right of the GitHub screen while viewing a repository. This creates a copy of the repository under your own GitHub business relationship where you will work from.
- Later you lot have forked the activity files, become into the settings for that repository and change the name from learnaria.github.io to [username].github.io, where username is your GitHub account username. This will automatically create your GitHub Pages website at https://[username].github.io .
- Now you will desire to create a clone of your forked action files repository on your figurer, through which you will do your work. From the command line issue the following command to create a clone of the forked version of the activity files y'all created, where [username] is your GitHub business relationship username. You tin also copy the https link from a field that opens when y'all click on the "Clone or download" push button in your repo.
#> git clone - If you are using SourceTree, click on "+ New Repository" and choose "Clone from URL" and enter the to a higher place URL into the "Source URL" field. Set up the "Destination Path" to your preferred work directory.
You should now have a copy of the activity files available locally that you can edit and commit back every bit your assignment updates, which become function of your GitHub Pages website.
Note that it tin can have a few seconds or a minute for changes committed to your GitHub Pages repository to actually prove up on the website.
If You Already Have a GitHub Pages Site
To add together the files to an existing GitHub Pages site, open up the settings for the forked repository you lot created. In the GitHub Pages section shown in the screenshot below, choose the Source (typically, the master branch) and click Save. This will create a subdirectory nether your existing GitHub Pages site with the proper name of the forked repository (i.e., learnaria.github.io).
You may want to rename the repository to something shorter (eastward.g., learnaria) before enabling it in GitHub Pages. This would produce a URL to the action files, something like:
https://[username].github.io/learnaria/
Basic Git Commands
You practise not need to be an expert Git user, simply you should know a few basic commands if you are working from a command prompt. The commands you'll likely utilize are the following:
git condition (displays a list of inverse and untracked files)
git add [filename] (prepares a files for committing)
git commit -m "[message]" (draw the nature of the commit)
git push [origin principal] (sends the committed modify to your GitHub repository master branch)
git diff [filename] (shows the changes in a file)
Of form there are many other potential commands, but these are the most common. If you are using a Git customer, such equally SourceTree, these commands will be clickable in the UI buttons and menus. For more than about using Git from the control line, run into the Git Book.
What the Activity Files Look Like
Here is what to await in one case you take successfully set up the activity files. You lot'll notation that the widgets are inaccessible. Your job throughout the activities will exist to set up the accessibility of each widget.
duppstadtseck1998.blogspot.com
Source: https://pressbooks.library.ryerson.ca/wafd/chapter/submitting-coding-assignments-and-using-github/
0 Response to "Are We Allowed Upload Coding Class Assignments Onto Github"
Post a Comment