{"id":16196283,"url":"https://github.com/debasishray16/apartlet","last_synced_at":"2026-03-03T00:32:11.818Z","repository":{"id":234476118,"uuid":"788974914","full_name":"debasishray16/ApartLet","owner":"debasishray16","description":"The Rental House Management System is a web-based or desktop application developed to assist landlords, property managers, and tenants in efficiently managing rental properties. It provides a centralized platform for handling rental property-related tasks, including property listing, tenant management, lease agreements, rent collection.","archived":false,"fork":false,"pushed_at":"2024-08-29T16:50:51.000Z","size":16639,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T00:02:43.217Z","etag":null,"topics":["bootstrap","css","database","html5","js","php","phpmyadmin","scss"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debasishray16.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-19T13:07:17.000Z","updated_at":"2025-07-05T12:22:32.000Z","dependencies_parsed_at":"2024-08-29T18:39:19.931Z","dependency_job_id":null,"html_url":"https://github.com/debasishray16/ApartLet","commit_stats":null,"previous_names":["debasishray16/apartlet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/debasishray16/ApartLet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debasishray16%2FApartLet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debasishray16%2FApartLet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debasishray16%2FApartLet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debasishray16%2FApartLet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debasishray16","download_url":"https://codeload.github.com/debasishray16/ApartLet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debasishray16%2FApartLet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30027026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T00:31:48.536Z","status":"ssl_error","status_checked_at":"2026-03-03T00:30:56.176Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","css","database","html5","js","php","phpmyadmin","scss"],"created_at":"2024-10-10T08:47:07.145Z","updated_at":"2026-03-03T00:32:11.795Z","avatar_url":"https://github.com/debasishray16.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#\n### Apartlet🏠\n\n**Apartlet** is a property management system designed to efficiently handle property rentals and tenant information. Built using JavaScript for dynamic interactions, CSS for styling, PHP for backend operations, and Hack for performance enhancements, Apartlet provides features for managing houses, categories, payments, system settings, tenants, and user authentication. The system ensures data integrity and consistency through well-defined functional dependencies, delivering a robust platform for seamless property and tenant management.\n\nSteps:\n\n- Move the file to Xampp folder location.\n- Then, run the XAMPP server and start Apache and Server and type:\n\n```bash\nlocalhost/phpmyadmin/8366\n```\n\n- Upload the whole project in:\n\n```bash\nC:\\xampp\\htdocs\n```\n\n- Upload the database in **localhost/phpmyadmin/8366** by creating database with name:\n\n```bash\nhouse_rental_db\n```\n\n## Starting website\n\n```bash\nhttp://localhost/house_rental/login.php\n```\n\n### Tables\n\n1. categories table\n\n```sql\nCREATE TABLE categories (\n    id INTEGER(30) PRIMARY KEY NOT NULL AUTO_INCREMENT,\n    name VARCHAR(200) NOT NULL\n);\n\n```\n\n2. houses table\n\n```sql\nCREATE TABLE houses (\n    id INTEGER(30) PRIMARY KEY NOT NULL,\n    house_no VARCHAR(50) NOT NULL,\n    category_id INTEGER(30) NOT NULL,\n    description TEXT NOT NULL,\n    price DOUBLE\n);\n\n```\n\n3. payments table\n\n```sql\nCREATE TABLE payments (\n    id INTEGER(30) NOT NULL,\n    tenant_id INTEGER(30) NOT NULL,\n    amount FLOAT NOT NULL,\n    invoice VARCHAR(50) NOT NULL,\n    date_created DATETIME DEFAULT CURRENT_TIMESTAMP\n);\n```\n\n4. system_settings table\n\n```sql\nCREATE TABLE system_settings (\n    id INTEGER(30) NOT NULL,\n    name TEXT NOT NULL,\n    email VARCHAR(200) NOT NULL,\n    contact VARCHAR(20) NOT NULL,\n    cover_img TEXT NOT NULL,\n    about_content TEXT NOT NULL\n);\n```\n\n5. tenants table\n\n```sql\nCREATE TABLE tenants (\n    id INTEGER(30) NOT NULL PRIMARY KEY,\n    firstname VARCHAR(100) NOT NULL,\n    lastname VARCHAR(100) NOT NULL,\n    email VARCHAR(100) NOT NULL,\n    contact VARCHAR(50) NOT NULL,\n    house_id INTEGER(30) NOT NULL,\n    status TINYINT(1) NOT NULL,\n    date_in DATE\n);\n```\n\n6. users table\n\n```sql\nCREATE TABLE users (\n    id INTEGER(30) NOT NULL PRIMARY KEY,\n    name TEXT NOT NULL,\n    username VARCHAR(200) NOT NULL,\n    password TEXT NOT NULL,\n    type TINYINT(1) NOT NULL\n);\n```\n\n#### Functional Dependancies\n\n```text\n1. houses Table:\nid uniquely determines all other attributes (house_no, category_id, description, price).\nhouse_no and category_id together determine id.\n\nFunctional dependencies:\nid -\u003e house_no, category_id, description, price\nhouse_no, category_id -\u003e id\n\n2. categories Table:\nid uniquely determines name.\n\nFunctional dependencies:\nid -\u003e name\n\n3. payments Table:\nid uniquely determines all other attributes (tenant_id, amount, invoice, date_created).\n\nFunctional dependencies:\nid -\u003e tenant_id, amount, invoice, date_created\n\n4. system_settings Table:\nid uniquely determines all other attributes (name, email, contact, cover_img, about_content).\n\nFunctional dependencies:\nid -\u003e name, email, contact, cover_img, about_content\n\n5. tenants Table:\nid uniquely determines all other attributes (firstname, lastname, email, contact, house_id, status, date_in).\nhouse_id and date_in together determine id.\n\nFunctional dependencies:\nid -\u003e firstname, lastname, email, contact, house_id, status, date_in\nhouse_id, date_in -\u003e id\n\n6. users Table:\nid uniquely determines all other attributes (name, username, password, type).\n\nFunctional dependencies:\nid -\u003e name, username, password, type\n```\n\n#### Foreign-Key Dependancies\n\n```text\n1. houses Table:\nThe category_id column references the id column in the categories table.\nForeign key relationship:\ncategory_id REFERENCES categories(id)\n\n2. payments Table:\nThe tenant_id column references the id column in the tenants table.\nForeign key relationship:\ntenant_id REFERENCES tenants(id)\n\n3. tenants Table:\nThe house_id column references the id column in the houses table.\nForeign key relationship:\nhouse_id REFERENCES houses(id)\n```\n\n\n#### DBML Code\n\nhttps://dbdiagram.io\n\n```dbml\nTable categories {\n  \"id\" int(30) [pk, not null]\n  \"name\" varchar(200) [not null]\n}\n\nTable houses {\n  \"id\" int(30) [pk, not null]\n  \"house_no\" varchar(50) [not null]\n  \"category_id\" int(30) [not null]\n  \"description\" text [not null]\n  \"price\" double [not null]\n}\n\nTable payments {\n  \"id\" int(30) [pk, not null]\n  \"tenant_id\" int(30) [not null]\n  \"amount\" float [not null]\n  \"invoice\" varchar(50) [not null]\n  \"date_created\" datetime [not null, default: `current_timestamp()`]\n}\n\nTable system_settings {\n  \"id\" int(30) [pk, not null]\n  \"name\" text [not null]\n  \"email\" varchar(200) [not null]\n  \"contact\" varchar(20) [not null]\n  \"cover_img\" text [not null]\n  \"about_content\" text [not null]\n}\n\nTable tenants {\n  \"id\" int(30) [pk, not null]\n  \"firstname\" varchar(100) [not null]\n  \"middlename\" varchar(100) [not null]\n  \"lastname\" varchar(100) [not null]\n  \"email\" varchar(100) [not null]\n  \"contact\" varchar(50) [not null]\n  \"house_id\" int(30) [not null]\n  \"status\" tinyint(1) [not null, default: 1, note: '1 = active, 0= inactive']\n  \"date_in\" date [not null]\n  \n}\n\nTable users {\n  \"id\" int(30) [pk, not null]\n  \"name\" text [not null]\n  \"username\" varchar(200) [not null]\n  \"password\" text [not null]\n  \"type\" tinyint(1) [not null, default: 2, note: '1=Admin,2=Staff']\n}\n\n\n\n\nRef: \"categories\".\"id\" \u003c \"users\".\"id\"\nRef: \"users\".\"id\" \u003c \"houses\".\"category_id\"\nRef: \"tenants\".\"id\" - \"houses\".\"id\"\nRef: \"tenants\".\"id\" \u003c \"payments\".\"id\"\nRef: \"system_settings\".\"id\" - \"users\".\"id\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebasishray16%2Fapartlet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebasishray16%2Fapartlet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebasishray16%2Fapartlet/lists"}