| | 1 | - To successfully run the application locally, the following prerequisites and steps must be completed. |
| | 2 | |
| | 3 | 1. Prerequisites: |
| | 4 | |
| | 5 | . Java JDK 17 or newer |
| | 6 | |
| | 7 | . PostgreSQL |
| | 8 | |
| | 9 | . Maven (or usage of the provided mvnw wrapper) |
| | 10 | |
| | 11 | 2. Database Configuration |
| | 12 | |
| | 13 | . The application uses a PostgreSQL database. |
| | 14 | |
| | 15 | . The database connection and JPA settings are defined in the file: |
| | 16 | |
| | 17 | src/main/resources/application.properties |
| | 18 | |
| | 19 | . Make sure that a PostgreSQL database named bazi exists and that the provided username and password are valid. |
| | 20 | |
| | 21 | 3. Running the Application |
| | 22 | |
| | 23 | . Clone the project from GitHub: https://github.com/MalekAlavi/OPLMS-Project |
| | 24 | |
| | 25 | . Open the project in IntelliJ IDEA |
| | 26 | |
| | 27 | . Run the main application class: DbApplication |
| | 28 | |
| | 29 | |
| | 30 | 4. Accessing the Application |
| | 31 | |
| | 32 | . After the application starts successfully, it can be accessed via a web browser at: |
| | 33 | |
| | 34 | http://localhost:8080 |
| | 35 | |
| | 36 | |
| | 37 | |
| | 38 | |
| | 39 | |
| | 40 | |
| | 41 | |
| | 42 | |
| | 43 | |