{"id":19747369,"url":"https://github.com/maryehb/airbnb_clone","last_synced_at":"2026-03-19T11:27:09.801Z","repository":{"id":210730949,"uuid":"727318015","full_name":"MaryEhb/AirBnB_clone","owner":"MaryEhb","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-16T11:18:26.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T08:00:12.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/MaryEhb.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-04T16:13:55.000Z","updated_at":"2023-12-16T11:18:30.000Z","dependencies_parsed_at":"2025-02-28T00:35:15.656Z","dependency_job_id":"f44ba42a-07d3-424a-9035-eba1960125a7","html_url":"https://github.com/MaryEhb/AirBnB_clone","commit_stats":null,"previous_names":["maryehb/airbnb_clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MaryEhb/AirBnB_clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaryEhb%2FAirBnB_clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaryEhb%2FAirBnB_clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaryEhb%2FAirBnB_clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaryEhb%2FAirBnB_clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaryEhb","download_url":"https://codeload.github.com/MaryEhb/AirBnB_clone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaryEhb%2FAirBnB_clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30111779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-12T02:17:37.550Z","updated_at":"2026-03-05T06:01:45.882Z","avatar_url":"https://github.com/MaryEhb.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 0x00. AirBnB clone - The console\n\nWelcome to the AirBnB clone project! This is the initial step towards building a full web application resembling AirBnB. This phase involves creating a command interpreter to manage AirBnB objects.\n\n## Objective\n\nThe goal of this project is to:\n\n- Implement a command-line interface to handle AirBnB objects such as User, State, City, Place, etc.\n- Set up a parent class (BaseModel) responsible for initialization, serialization, and deserialization of future instances.\n- Establish a serialization/deserialization flow: Instance \u003c-\u003e Dictionary \u003c-\u003e JSON string \u003c-\u003e file.\n- Create classes for AirBnB objects inheriting from BaseModel.\n- Develop the first abstracted storage engine for the project: File storage.\n- Construct comprehensive unit tests to validate classes and the storage engine.\n\n## Installation\nClone this repo in your trminal\n```\n$ git clone https://github.com/MaryEhb/AirBnB_clone\n```\n\n## Execution\nThe Shell works in both interactive and non-interactive modes. Examples include:\n\n**Interactive Mode:**\n```bash\n$ ./console.py\n(hbnb) help\n\nDocumented commands (type help \u003ctopic\u003e):\n========================================\nEOF  help  quit\n\n(hbnb) \n(hbnb) \n(hbnb) quit\n$\n```\n\n**Non-Interactive Mode:**\n```bash\n$ echo \"help\" | ./console.py\n(hbnb)\n\nDocumented commands (type help \u003ctopic\u003e):\n========================================\nEOF  help  quit\n(hbnb) \n$\n$ cat test_help\nhelp\n$\n$ cat test_help | ./console.py\n(hbnb)\n\nDocumented commands (type help \u003ctopic\u003e):\n========================================\nEOF  help  quit\n(hbnb) \n$\n```\n\n## Supported Commands\n\nThe `console.py` command interpreter supports the following commands:\n\n### 1. help\nDisplay help\n```\n$ help\n```\n\n### 2. quit\nQuit command to exit the program.\n```\n$ quit\n```\n\n### 3. EOF\nQuit command to exit the program.\n```\n$ EOF\n```\n\n### 4. create\n\nCreates a new instance of BaseModel, saves it to the JSON file, and prints the id.\n\n```\n$ create BaseModel\n```\n\n### 5. show\n\nPrints the string representation of an instance based on the class name and id.\n\n```\n$ show BaseModel 1234-1234-1234\n$ BaseModel.show(\"1234-1234-1234\")\n```\n\n### 6. destroy\n\nDeletes an instance based on the class name and id, saving the change into the JSON file.\n\n```\n$ destroy BaseModel 1234-1234-1234\n$ BaseModel.detroy(\"1234-1234-1234)\n```\n\n### 7. all\n\nPrints all string representations of instances based or not on the class name.\n\n```\n$ all\n$ all BaseModel\n$ BaseModel.all()\n```\n\n### 8. update\n\nUpdates an instance based on the class name and id by adding or updating an attribute.\n\n```\n$ update BaseModel 1234-1234-1234 email \"aibnb@mail.com\"\n```\n### 9. count\n\nRetrieves the number of instances of a class.\n\n```\n$ count\n$ count BaseModel\n$ BaseModel.count()\n```\n\n## Authors\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/AmiraWalid1\"\u003eAmira Walid \u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/MaryEhb\"\u003eMariem Ehab \u003c/li\u003e\n\u003c/ul\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaryehb%2Fairbnb_clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaryehb%2Fairbnb_clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaryehb%2Fairbnb_clone/lists"}