The Dynamic Rent Adjustment System (DRAS) is a web application for real estate property management, connecting owners with tenants, and processing rental applications.
Academic Project: This project is being developed as an undergraduate thesis in the Department of Informatics and Telecommunications at Harokopio University of Athens. It follows a layered backend architecture, feature-based frontend architecture, RESTful APIs, and role-based access control.
- Overview
- Academic Context
- System Architecture
- Core Features
- Role Management
- Project Structure
- Requirements
- Installation
- Configuration
- Usage Guide
- CI/CD & Production Deployment
- Author
- License
DRAS is a full-stack rental management platform developed as an undergraduate thesis project. It manages rental properties, tenant applications, and administrative workflows.
The Dynamic Rent Adjustment System (DRAS) is the implementation component of an undergraduate diploma thesis.
The objective of the project is to design and develop a rental management platform that demonstrates the application of software engineering principles, including:
- Layered backend architecture
- RESTful API design
- Role-based access control (RBAC)
- Feature-based React architecture
- Relational database design
- Authentication and authorization
- External data integration
The project is an academic research contribution and a demonstration of building a full-stack web application.
The project consists of three distinct components communicating over HTTP via a RESTful API:
- Backend (Spring Boot API): Java REST API handling data persistence, authentication, role-based authorization, and business logic.
- Frontend (React SPA): Single Page Application built with Vite and React.
- Analytics & Scraper (Python): Python-based data collection and analytics engine for retrieving and analyzing market trends.
- Listing Management: Owners can create, update, and track real estate properties with metrics (price per m², property type, amenities).
- Application Workflow: Tenants can apply for properties, and owners can review these applications.
- Dynamic Roles: Automatic role assignment (Owner, Tenant) based on user activity and profile creation.
- Admin Oversight: Administrative workflows for user management and manual listing approvals.
- Frontend UI: User interface compatible with desktop, tablet, and mobile devices.
- Analytics & Imports: Automated batch importing of external listings and market data analysis.
| Role | Description |
|---|---|
| USER | Assigned by default upon account registration. |
| OWNER | Assigned automatically when a user creates an owner profile to list a property. |
| TENANT | Assigned automatically when a user creates a tenant profile to apply for a rental. |
| ADMIN | Platform governance and oversight; manages user accounts and roles, and reviews listing approvals (restricted from marketplace participation). |
/
├── backend/ # Spring Boot REST API Service
│ ├── src/main/java/ # Java source code and domain logic
│ └── src/main/resources/ # Application properties and configurations
│
├── frontend/ # React Single Page Application
│ ├── src/features/ # Domain-driven feature modules (Auth, Listings, etc.)
│ ├── src/shared/ # Centralized API client, shared hooks, and UI components
│ └── src/app/ # Global routing and context providers
│
└── analytics/ # Python Data Analytics & Scraper
├── analysis/ # Market data analysis scripts
├── models/ # Time series forecasting and price suggestion models
└── scrapers/ # Web scrapers for external listings
To run this application, ensure you have the following installed:
- Java: JDK 21+
- Node.js: v18+
- Python: 3.12+ (for analytics)
- Maven: 3.8+
- Database: PostgreSQL (or any relational DB for development)
- Docker: Optional, for containerized local development
- Clone the repository and configure
.env:git clone https://github.com/AthosExarchou/dynamic-rent-adjustment-system.git cd dynamic-rent-adjustment-system cp .env.example .env - Start PostgreSQL (e.g.
docker compose up -d db). - For the Backend:
cd backend mvn clean install mvn spring-boot:run - For the Frontend:
cd frontend npm install npm run dev - Access the application in your browser at
http://localhost:5173. - For the Analytics module, see the
analyticsfolder for Python environment setup instructions. - (Optional) Seed demo data and test accounts:
Accounts created:
node scripts/seed-db.js # or from frontend: npm run seed[email protected],[email protected],[email protected],[email protected](password:<username>Password1!).
The project utilizes .env files for configuration. Copy the example file in the root directory:
cp .env.example .env
Fill in DATABASE_URL, DATABASE_USERNAME, DATABASE_PASSWORD, APP_PUBLIC_URL, and MAIL_* credentials. Set APP_PUBLIC_URL according to your deployment target.
Set SCRAPER_API_KEY to a strong random value and export the same value when running the analytics scrapers; it authenticates machine-to-machine pushes to /api/external-import/listings.
The backend is configured to use environment variables by default. You can adjust application profiles (dev, prod) here.
Configure the backend API URL:
VITE_API_BASE_URL=http://localhost:8080/api- Create an account and log in.
- Visit the Listings page to view available apartments.
- Click Apply on a listing and complete your Tenant Profile to submit the application.
- Log in to your account.
- Navigate to Listings and click Submit Property.
- Fill out the property details and your Owner Profile.
- Once the listing is approved by an Admin, manage incoming tenant applications from your dashboard.
- Log in with an Admin account.
- Review and approve pending property listings.
- Manage users and assign or revoke roles as necessary.
The application is hosted on an Oracle Cloud ARM64 VM using Docker Compose. It uses Nginx to serve the React frontend and proxy requests to the Spring Boot backend. The PostgreSQL database is not exposed to the public internet.
The deployment pipeline consists of:
- GitHub Actions: Runs backend unit tests, frontend oxlint checks, and build verification on push.
- Jenkins: Runs on the Oracle server. When the
mainbranch is updated, Jenkins builds new Docker images, restarts the application containers, and executes a smoke test to verify application availability before marking deployment complete.
- Name: Exarchou Athos
- Student ID: it2022134
- Email: [email protected] | [email protected]
This project is licensed under the MIT License.