Setting Up
Setting up the project in your computer
- Fork this repo, and clone the fork into your computer.
- Configure the JDK: Follow the guide [se-edu/guides] IDEA: Configuring the JDK to configure IntelliJ to use JDK11.
- Import the project as a Gradle project: Follow the guide [se-edu/guides] IDEA: Importing a Gradle project to import the project into IDEA.
- Verify the setup:
- Run
WhereGotTime
, you should see something like the following:Executing task 'WhereGotTime.main()'... > Task :compileJava UP-TO-DATE > Task :processResources NO-SOURCE > Task :classes UP-TO-DATE > Task :WhereGotTime.main() ____________________________________________________________ _ _ _ _____ _ _____ _ | | | | | | __ \ | |_ _(_) | | | | |__ ___ _ __ ___| | \/ ___ | |_| | _ _ __ ___ ___ | |/\| | '_ \ / _ \ '__/ _ \ | __ / _ \| __| | | | '_ ` _ \ / _ \ \ /\ / | | | __/ | | __/ |_\ \ (_) | |_| | | | | | | | | __/ \/ \/|_| |_|\___|_| \___|\____/\___/ \__\_/ |_|_| |_| |_|\___| Hello! Welcome to WhereGotTime! Please enter your time table details. You may refer to the User Guide for instructions. ____________________________________________________________
- Run the test to ensure they all pass.
- Method 1: Use IntelliJ JUnit test runner
- To run all test, right-click on the
src/test/java/seedu.duke
folder and selectRun 'Tests in 'seedu.duke''
- To run a test , right-click on the class and select
Run '(class_name)''
- To run all test, right-click on the
- Method 2: Using Gradle
- (Windows) Open the terminal in intelliJ and run the command
gradlew clean test
- (Mac/Linux) Open the terminal in intelliJ and run the command
./gradlew clean test
- (Windows) Open the terminal in intelliJ and run the command
- Method 1: Use IntelliJ JUnit test runner
- Run
Before Writing Code
-
Configure the coding style
Follow the guide [se-edu/guides] IDEA: Configuring the code style to set up IDEA’s coding style to match ours.
Additionally, you can follow the guide [se-edu/guides] Using Checkstyle to find how to use the CheckStyle within IDEA.
-
Set up CI
This project comes with a GitHub Actions config files (in
.github/workflows
folder). When GitHub detects those files, it will run the CI for your project automatically at each push to themaster
branch or to any PR. No set up required. -
Learn the design
When you are ready to start coding, we recommend that you get some sense of the overall design by reading about Duke’s architecture from our DeveloperGuide.