This is a repository that will be used to hold submissions for exercises completed as part of the N4 Developer Training. These exercises are not mandatory, and submission is not mandatory even if you do the exercise. However, if you would like your completed exercise to be code-reviewed by the instructor, here are the steps to submit your work:
These steps only need to be completed once at the beginning of the course to get the repo onto your machine.
- Login to GitHub and navigate to this repo.
- Click Fork in the top right corner to create a fork of this repository in your own GitHub account.
- Create a clone of your forked repository on your machine. One way to do this is to click the Code button in your forked repository, copy the shown URL, and run the command
git clone <forked_repo_url>
on your machine.
- Edit the
environment.gradle
file as necessary for your machine. Theniagara_home
andniagara_user_home
variables should have the same values for these exercises as they do for the labs in class. Theniagara_dev_home
variable should point to the repository root directory.
These steps must be completed for each exercise you want to submit.
- Navigate to the directory on your machine where you cloned your forked repository.
- Create a new branch to hold your changes and check it out. One way to do this is with the command
git checkout -b <branch_name>
, where<branch_name>
is something descriptive about the changes that will be on your branch. - Complete the exercise, including any coding, testing, etc.
- When you're ready to submit your code for review, create one or more commits holding your changes. A simple way to do this is to run the command
git add .
from the repository root to add all of your changes to staging , then run the commandgit commit -m "<commit_message>"
to make a commit containing your changes. - Push your commit(s) to your forked repository in GitHub with the command
git push
. If your local branch isn't tracking an upstream branch, you may need to use the commandgit push --set-upstream origin <branch_name>
- In a web browser, navigate to your forked repository. Switch to the branch that you just pushed, then click the Contribute button and choose to open a Pull Request.
- Fill out the Pull Request form and submit the Pull Request.
- Your instructor will review your Pull Request and provide feedback on your code. Feel free to also look at other students' pull requests and the feedback on their code to get diverse ideas about how to solve the exercise.