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)
Verify Prerequisites
Check that Java 21 is installed and accessible:Clone the Repository
Database Setup
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:
- Neon (recommended for production)
- Supabase
- ElephantSQL
Create the database
Connect to PostgreSQL and create a new database for Duit:Or using the command line:
Project Dependencies
Duit uses the following key dependencies (automatically managed by Maven):| Dependency | Version | Purpose |
|---|---|---|
| Spring Boot | 3.5.10 | Core framework |
| Spring Security | 6.x | Authentication & authorization |
| Spring Data JPA | 3.x | Database operations |
| PostgreSQL Driver | Latest | Database connectivity |
| Thymeleaf | 3.x | Template engine |
| Lombok | 1.18.32 | Code generation |
| Spring DotEnv | 3.0.0 | Environment variable management |
All dependencies are defined in
pom.xml and will be automatically downloaded when you first build the project.