Homework: Implementation III
- Due Oct 6, 2021 by 11am
- Points 5
- Available after Oct 4, 2021 at 11am
If you haven't already, send me your GitHub username (email me or DM me on Discord).
Clone the Bookstore Inventory System Links to an external site. repository. I developed this with NetBeans using OpenJDK 17 Links to an external site.. NetBeans uses Maven by default to build, and the project includes a pom.xml file with the dependencies (just one as of right now). I found, however, that NetBeans wouldn't connect to GitHub and so I used GitBash to clone and perform other Git operations from the command line.
Before you go to the next step, consider the following component that needs to be implemented in the code base:
- in CommandLineDriver
- the modify option
- the delete option
- in SQLiteDatabase
- the getBookById method
- the getBookByISBN method
- the removeBookById method
- the removeBookByISBN method
Pick one of these to tackle.
After you clone it, checkout a new branch with a name that reflects which component you picked to work on (so replace your-branch-name in the example below):
git checkout -b your-branch-name
After you checkout your branch, make sure you can build and run the CommandLineDriver from inside of NetBeans: you should be able to add one or more books with the 'a' option and then see them listed with the 'l' option, even between runs of the program.
Implement your changes and then push them to a branch with the same name as the one you picked:
git push -u origin your-branch-name
Then put in a Pull Request on GitHub to merge your branch into main, but don't confirm it!! That's it for now.
Potentially helpful resources
- I've made a playlist of my video guides on Git here Links to an external site. (e.g., adding an SSH key, using branches, etc.)
- here's a video on making pull requests Links to an external site.