TrackIt@NUS - Setting Up
TrackIt@NUS - Setting Up
Prerequisites
- JDK
11
or above - IntelliJ IDE
IntelliJ by default has Gradle and JavaFX plugins installed. If you have disabled them, go to
File
> Settings
> Plugins
to re-enable them.
Setting up the project in your computer
-
Fork this repo, and clone the fork into your computer
-
Open IntelliJ (if your are not in the welcome screen, click
File
>Close Project
to close the existing project dialog first) - Configure the JDK
- Click
Configure
>Project Defaults
>Project Structure
- Click
New…
and find the directory of the JDK - Follow the guide [se-edu/guides] IDEA: Configuring the JDK for more information
- Click
-
Click
Import Project
-
Locate the
build.gradle
file and select it. ClickOK
-
Click
Open as Project
-
Click
OK
to accept the default settings -
Run the
Main
and try a few commands - Run the tests to ensure they all pass
Before writing code
Configuring the Coding Style
If using IDEA, follow the guide [se-edu/guides] IDEA: Configuring the code style to set up IDEA’s coding style to match ours.
Optionally, you can follow the guide [se-edu/guides] Using Checkstyle to find how to use the CheckStyle within IDEA e.g., to report problems as you write code.
-
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 TrackIt@NUS’s architecture.