Prerequisites
Before you begin, ensure you have the following installed on your system:Java 17
The project requires Java 17 or higher
Maven
Apache Maven for dependency management and building
PostgreSQL
PostgreSQL database server (version 12 or higher)
Git
Git for cloning the repository
Verify Java Installation
Verify Maven Installation
Clone the Repository
Build the Project
Install dependencies
Use Maven to download all required dependencies:
The first build may take several minutes as Maven downloads all dependencies.
Configure the Database
Before running the application, you need to configure the PostgreSQL database connection. Editsrc/main/resources/application.properties:
Run the Application
- Using Maven
- Using Maven Wrapper
- Using JAR file
Run the application using the Spring Boot Maven plugin:
Verify Installation
Once the application starts, you should see output indicating the server is running:Common Issues
Port 8080 already in use
Port 8080 already in use
If port 8080 is already in use, you can change it by adding this to
application.properties:Database connection failed
Database connection failed
Ensure:
- PostgreSQL is running
- The database
libraryexists - Username and password are correct
- PostgreSQL is accepting connections on port 5432
Maven build fails
Maven build fails
Try clearing the Maven cache and rebuilding:
Java version mismatch
Java version mismatch
The project requires Java 17. If you have multiple Java versions installed, set
JAVA_HOME:Next Steps
Database Configuration
Learn how to configure PostgreSQL and JPA settings
Security Setup
Configure authentication and protect your endpoints
API Reference
Explore the available API endpoints
Quick Start
Follow a quick tutorial to get started