This repo is an example Java project to be used as a reference point on how classes are strucutred in a library. In addition, docs and tests are provided.
with apt:
Open a terminal and run the following command:
sudo apt update
This retrieves links to the most up-to-date and secure versions of your packages.
Next, with:
sudo apt install git
you install git
onto your system.
We recommend that you use the third party Homebrew package manager for macOS, which allows you to install packages from your terminal just as easily as you could on a Linux based system. You could use another package manager (or not use one at all), but Homebrew is highly reccomended.
To get homebrew, run the following command in a terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
Note: You do NOT need to use sudo
when running any Homebrew commands, and
it likely won't work if you do.
Next, to make sure Homebrew is up to date, run:
brew update
Finally we can install git with:
brew install git
Now, we're going to clone down a copy of the codebase.
a) Configure your ssh keys by following the directions at:
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/.
b) Now, on your computer, navigate to the directory in which you want to download the project (ie. perhaps one called development/SRCT
), and run
git clone git@github.com:dhaynespls/BankOfDavid.git
Check out the resources on http://try.github.io/ for more information on how git works.
Get the status of the git repo:
git status
Commiting changes:
git add --all
git commit
Once you have cloned the repo you can open the IDE and open the project from there.
Documentation is handled by CI and is hosted at:
https://dhaynespls.github.io/BankOfDavid/annotated.html
All code is written in Java 11.
You can configure IntelliJ to run unit tests by looking at the top right and hitting the dropdown to select the tests to run. You will need to download the JUnit jar file.