Follow these steps to set up the Managify project on your local machine.
Prerequisites
- Java Development Kit (JDK) 11 or higher
- Apache Maven
- PostgreSQL Database
- An IDE (e.g., IntelliJ, Eclipse)
Clone the Repository
git clone https://github.com/doguhannilt/managify.git
Configure Application Properties
In the src/main/resources
directory, locate application.properties
and add your PostgreSQL credentials and JWT settings as follows:
# Application Name
spring.application.name=managify
# Database Configuration
spring.datasource.url=jdbc:postgresql://localhost:5432/Managify
spring.datasource.username=your_db_username
spring.datasource.password=your_db_password
spring.datasource.driver-class-name=org.postgresql.Driver
# JPA and Hibernate Settings
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# JWT Settings
jwt.secret-key=YOUR_SECRET_KEY
jwt.expiration-ms=3600000
Verify the Setup
Once the application is running, visit http://localhost:8080/api
to ensure that everything is configured properly.