farketmez-backend
This project contains a Java application that performs fark etmez functions. Our application, which is an event planning website, was made within the scope of a computer engineering graduation project.
Prerequisites
Make sure you have the following software installed on your computer before proceeding:
- Java Development Kit (JDK)
- PostgreSQL database server
- Eclipse IDE
Steps
Importing the Project
- Open Eclipse IDE.
- Select the File menu and choose the Import option.
- In the opened window, select Existing Maven Projects and click Next.
- Specify the directory where the project is located (Root Directory) and click Finish.
- Eclipse will import the Maven project and add it to the project explorer.
Lombok Installation
- Ensure that Lombok is installed in your IDE.
- If Lombok is not installed, follow these steps:
- Close your IDE.
- Add the Lombok library to your IDE.
- Start your IDE.
Loading Dependencies and Building the Project
After importing the project, Eclipse will automatically load the dependencies using Maven. This process may take some time and runs in the background. To compile your Maven project, follow these steps:
- Right-click on the project and select Run As from the context menu, then click on Maven Install.
- When the Maven project build process is complete, you will see a successful message in the console.
PostgreSQL Integration
To use the PostgreSQL database server, follow these steps:
- Open the
application.properties
file located under src/main/resources
.
- Update your database connection information according to your PostgreSQL server (e.g., URL, username, password, etc.).
- Save the changes.
Importing Dummy Data into PostgreSQL
To import dummy data into the PostgreSQL database, follow these steps:
- Open a SQL client tool.
- Connect to your PostgreSQL database server.
- Open the farketmez database.
- Open the
dummy_data.sql
file located in the project's root directory.
- Execute the SQL statements in the
dummy_data.sql
file to populate the database with dummy data.
Running the Application
- There should be a Java class representing the entry point of the application under
src/main/java/com.mmhb.farketmez.FarketmezApplication
class.
- To run the application, follow these steps:
- Locate the entry point class and right-click on it.
- From the context menu, select Run As, and then click on Java Application.
- When the application runs successfully, you will see the relevant output in the console.
Accessing the Application
When the application is running, you can access the expected screens by navigating to localhost:8080
in your web browser.
Note: Make sure the application is running on the specified port, which is 8080
by default.