Welcome to the Real Estate Control System, a comprehensive Java project designed to meet the dynamic requirements of real estate management. This system empowers real estate agencies to efficiently organize and manage information related to properties, owners, brokers, and clients.
-
☕ Java: The core programming language for building the Real Estate Control System.
-
🛠 IntelliJ IDEA: A powerful integrated development environment (IDE) used for Java development, ensuring a smooth and productive coding experience.
-
🐘PostgreSQL: A robust and open-source relational database management system used to store and manage the project's data.
The system caters to various property types, including houses, apartments, commercial rooms, farms, and land. Keep track of each property's status, whether on offer, sold, or rented.
Efficiently manage relationships with property owners and brokers. Owners can possess multiple properties, and brokers handle the negotiation and transaction process. The system records essential details such as owner and buyer/lessor information, transaction intermediation, and financial aspects.
For each property transaction, whether sale or lease, the system captures comprehensive information. Sales data includes the property amount, fees, taxes, and the agency's commission. Lease details cover monthly rent, rental duration, guarantor information, and deposit amount.
In rental scenarios, the system ensures transparent financial transactions. The agency records all rent payments and promptly transfers the agreed-upon amount to the property owner after deducting their commission.
Maintain an up-to-date database of brokers working for the agency. Keep track of their contributions in serving clients and facilitating property transactions.
Clients, both property buyers/renters and property owners, are essential to the real estate agency. The system provides a comprehensive database to store and retrieve client information, enabling efficient communication and service.
- Download PostgreSQL from https://www.postgresql.org/download/ based on your operating system.
- Follow the installation instructions provided on the official website.
- Open pgAdmin, which is usually installed automatically with PostgreSQL.
- Right-click on "Servers" and choose "Create" > "Server...".
-
Fill in the following fields in the "Create - Server" window:
- Name: RealEstateServer (or your preferred name).
- Host name/address: localhost
- Port: 5432
- Maintenance database: postgres
- Username: postgres
- Password: 123456 (or the password you set during installation).
-
Click "Save" to create the server.
- Clone the Real Estate Control System repository.
- Connect to the server in pgAdmin.
- Right-click on the database (usually named
postgres) and chooseQuery Tool. - Open the SQL file in the project directory named
src/database/RealEstate.sql. (Don't forget to read the documentation). - Execute the contents of the SQL file in the Query Tool to create tables and insert some fictional data.
-
Add the JDBC library to your project, downloadable from https://jdbc.postgresql.org/.
-
Configure JDBC in your Java code. Open the
Connect.javafile and adjust the JDBC import:import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException;
-
Ensure the PostgreSQL JDBC driver is in your classpath. If using Maven, add the following dependency to your
pom.xml:<dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>42.7.1</version> </dependency>
Follow these steps to set up and run the Real Estate Control System on your local machine:
-
Clone this repository:
git clone https://github.com/Wesley00s/RealEstate.git
-
Set up your Java development environment:
Ensure you have Java Development Kit (JDK) installed on your machine. You can download it from here.
-
Import the project into your preferred IDE (such as IntelliJ IDEA):
Open your IDE and import the project using the provided build tool (e.g., Maven or Gradle).
-
Configure PostgreSQL for data storage:
- Install PostgreSQL: Download PostgreSQL
- Create a database named "RealEstate" with the username "postgres" and password "123456" (or adjust these settings in the
Connect.javafile).
-
Run the application:
Build and run the application from your IDE. The application will be accessible at
http://localhost:8080(or another specified port).
Now you are ready to start managing your real estate transactions seamlessly! Explore the functionalities of the Real Estate Control System and enhance your real estate management experience.