This is a project template for a greenfield Java project. It's named after the Java mascot Duke. Given below are instructions on how to use it.
Prerequisites: JDK 11 (use the exact version), update Intellij to the most recent version.
- Fork this repo, and clone the fork into your computer.
- Open the application
Intellij IDEA
.- On the top left of the navigation bar, select
File
>Open...
. - Navigate to the folder, and select the folder containing the
DinerDirector
files that was cloned. - By default, if there is a
build.gradle
in the project root, Intellij treats it as a Gradle project by default. Just in case it didn't work follow the guide Importing a Gradle project.
- On the top left of the navigation bar, select
- Once the project is opened, Configure the JDK: Follow the guide JetBrains Intellij IDEA: Configure JDK to ensure Intellij is configured to use JDK 11.
- Verify the setup
- Once the above steps are completed, locate the file
src/main/java/dinerdirector/DinerDirector.java
, right-click and selectRun 'DinerDirector.main()'
- If setup is correctly done, this is what you should see:
Welcome to DinerDirector! Please type "help" for a list of valid commands. What can I do for you? >
- Once the above steps are completed, locate the file
- This project uses Gradle for build automation and dependency management. It includes a basic build script as well (i.e. the
build.gradle
file). - If you are new to Gradle, refer to the Gradle Tutorial at se-education.org/guides.
- To run I/O redirection tests (aka Text UI tests), navigate to the
text-ui-test
and run theruntest(.bat/.sh)
script.
- JUnit testing is used for this project.
- If you are new to JUnit, refer to the JUnit Tutorial at se-education.org/guides.
- A sample CheckStyle rule configuration is provided in this project.
- If you are new to Checkstyle, refer to the Checkstyle Tutorial at se-education.org/guides.
The project uses GitHub actions for CI. When you push a commit to this repo or PR against it, GitHub actions will run automatically to build and verify the code as updated by the commit/PR.
/docs
folder contains the project documentation.
Steps for publishing documentation to the public:
- If you are using this project template for an individual project, go your fork on GitHub.
If you are using this project template for a team project, go to the team fork on GitHub. - Click on the
settings
tab. - Scroll down to the
GitHub Pages
section. - Set the
source
asmaster branch /docs folder
. - Optionally, use the
choose a theme
button to choose a theme for your documentation.