Setting up and getting started
- Setting up the project in your computer
- Before writing code
- Setting up the Jekyll documentation website
Setting up the project in your computer

First, fork this repo, and clone the fork into your computer.
If you plan to use Intellij IDEA (highly recommended):
- Configure the JDK: Follow the guide [se-edu/guides] IDEA: Configuring the JDK to ensure Intellij is configured to use JDK 17.
-
Import the project as a Gradle project: Follow the guide [se-edu/guides] IDEA: Importing a Gradle project to import the project into IDEA.
Note: Importing a Gradle project is slightly different from importing a normal Java project.
-
Verify the setup:
- Run the
seedu.address.Main
and try a few commands. - Run the tests to ensure they all pass.
- Run the
Before writing code
-
Configure 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.
Tip: 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 AddressBook’s architecture.
-
Do the tutorials These tutorials will help you get acquainted with the codebase.
Setting up the Jekyll documentation website
If you want to work on the project documentation website (this website), you’ll need to set up Jekyll locally.
Prerequisites
Before setting up Jekyll, ensure you have Ruby installed on your system:
ruby --version
If Ruby is not installed, install it using your system’s package manager.
Installation Steps
-
Install Ruby development headers and build tools (required for compiling native gems):
On Ubuntu/Debian:
sudo apt update sudo apt install ruby-dev build-essential
On macOS:
# If using Homebrew brew install ruby # Development tools should already be available via Xcode Command Line Tools
On Windows: Install Ruby through RubyInstaller with the DevKit.
-
Navigate to the docs directory:
cd docs
-
Install Bundler (if not already installed):
gem install bundler
-
Install Jekyll and dependencies:
bundle install
Note:
If you encounter permission errors, you can install gems locally instead of system-wide:bash bundle install --path vendor/bundle
Running the Jekyll Site Locally
-
Start the Jekyll server:
bundle exec jekyll serve
-
Access the website: Open your web browser and navigate to
http://localhost:4000
orhttp://127.0.0.1:4000
- Live reloading: The Jekyll server will automatically reload when you make changes to the documentation files.
Troubleshooting
Error: mkmf.rb can't find header files for ruby
- This means you need to install Ruby development headers. Follow step 1 in the installation instructions above.
Error: Permission denied
when installing gems
- Use
bundle install --path vendor/bundle
to install gems locally instead of system-wide. - Alternatively, use a Ruby version manager like
rbenv
orrvm
to manage Ruby installations in your user directory.