Skip to main content

Prerequisites

Before installing Duit, ensure you have the following software installed on your system:

Java 21

JDK 21 or higher is required to run Duit

Maven

Maven wrapper (mvnw) is included in the project

PostgreSQL

PostgreSQL database (local or remote)
Duit requires Java 21 or higher. Earlier versions of Java are not supported due to language features used in Spring Boot 3.5.10.

Verify Prerequisites

Check that Java 21 is installed and accessible:
java -version
You should see output indicating Java version 21 or higher:
java version "21.0.x"

Clone the Repository

1

Clone the project

Clone the Duit repository to your local machine:
git clone <url-del-repositorio>
cd Duit
2

Verify project structure

Ensure the Maven wrapper files are present:
ls -la mvnw
You should see mvnw (Linux/Mac) or mvnw.cmd (Windows) in the project root.

Database Setup

1

Install PostgreSQL

If you don’t have PostgreSQL installed, download and install it from postgresql.org.Alternatively, you can use a cloud PostgreSQL service like:
2

Create the database

Connect to PostgreSQL and create a new database for Duit:
CREATE DATABASE duit;
Or using the command line:
psql -U postgres -c "CREATE DATABASE duit;"
3

Note your credentials

Save your database connection details:
  • Host: localhost (or your cloud provider’s host)
  • Port: 5432 (default PostgreSQL port)
  • Database: duit
  • Username: Your PostgreSQL username
  • Password: Your PostgreSQL password
You’ll need these for the configuration step.

Project Dependencies

Duit uses the following key dependencies (automatically managed by Maven):
DependencyVersionPurpose
Spring Boot3.5.10Core framework
Spring Security6.xAuthentication & authorization
Spring Data JPA3.xDatabase operations
PostgreSQL DriverLatestDatabase connectivity
Thymeleaf3.xTemplate engine
Lombok1.18.32Code generation
Spring DotEnv3.0.0Environment variable management
All dependencies are defined in pom.xml and will be automatically downloaded when you first build the project.

Next Steps

Now that you have Duit installed and your database set up, proceed to the Configuration guide to configure your application.

Build docs developers (and LLMs) love