{"id":26819377,"url":"https://github.com/nuuxcode/airbnb_clone","last_synced_at":"2026-03-02T04:02:24.698Z","repository":{"id":186512983,"uuid":"675292705","full_name":"nuuxcode/AirBnB_clone","owner":"nuuxcode","description":"AirBnB clone project, a full web application that mimics some functionalities of the popular accommodation rental platform, Airbnb.","archived":false,"fork":false,"pushed_at":"2023-08-20T19:55:17.000Z","size":138,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-09T01:15:04.646Z","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/nuuxcode.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-06T12:48:12.000Z","updated_at":"2024-03-26T23:15:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc694ce9-6735-4376-ba5d-9c1b6d3ba1d2","html_url":"https://github.com/nuuxcode/AirBnB_clone","commit_stats":null,"previous_names":["nuuxcode/airbnb_clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nuuxcode/AirBnB_clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuuxcode%2FAirBnB_clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuuxcode%2FAirBnB_clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuuxcode%2FAirBnB_clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuuxcode%2FAirBnB_clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuuxcode","download_url":"https://codeload.github.com/nuuxcode/AirBnB_clone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuuxcode%2FAirBnB_clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29992286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-03-30T05:17:44.616Z","updated_at":"2026-03-02T04:02:24.691Z","avatar_url":"https://github.com/nuuxcode.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AirBnB clone - The console\n\nWelcome to the AirBnB Clone Console! This is the first step towards building the AirBnB clone project, a full web application that mimics some functionalities of the popular accommodation rental platform, Airbnb.\n\n## Contents:\n\n* [1 Introduction](#1-Introduction)\n* [2 Tools](#2-Tools)\n* [3 Installation](#3-Installation)\n* [4 Testing](#4-Testing)\n* [5 Usage](#5-Usage)\n* [6 Authors](#6-Authors)\n* [7 License](#7-license)\n\n# ``1-Introduction``\nTeam project to build a clone of [AirBnB](https://www.airbnb.com/).\n\n## Overview\n\nThe AirBnB Clone Console is a Python-based command-line interface (CLI) that allows you to manage AirBnB objects, such as users, states, cities, places, and more. With this console, you can perform various operations on these objects, including creating, retrieving, updating, and deleting them.\n\nThe console will perform the following tasks:\n\n* create a new object\n* retrive an object from a file\n* do operations on objects\n* destroy an object\n\n\n\n## ``2-Tools``\n\u003c!-- ubuntu --\u003e\n\u003ca href=\"https://ubuntu.com/\" target=\"_blank\"\u003e \u003cimg height=\"\" src=\"https://img.shields.io/static/v1?label=\u0026message=Ubuntu\u0026color=E95420\u0026logo=Ubuntu\u0026logoColor=E95420\u0026labelColor=2F333A\" alt=\"Suite CRM\"\u003e\u003c/a\u003e \u003c!-- bash --\u003e \u003ca href=\"https://www.gnu.org/software/bash/\" target=\"_blank\"\u003e \u003cimg height=\"\" src=\"https://img.shields.io/static/v1?label=\u0026message=GNU%20Bash\u0026color=4EAA25\u0026logo=GNU%20Bash\u0026logoColor=4EAA25\u0026labelColor=2F333A\" alt=\"terminal\"\u003e\u003c/a\u003e \u003c!-- python--\u003e \u003ca href=\"https://www.python.org\" target=\"_blank\"\u003e \u003cimg height=\"\" src=\"https://img.shields.io/static/v1?label=\u0026message=Python\u0026color=FFD43B\u0026logo=python\u0026logoColor=3776AB\u0026labelColor=2F333A\" alt=\"python\"\u003e\u003c/a\u003e \u003c/a\u003e\u003c!-- vs code --\u003e \u003ca href=\"https://code.visualstudio.com/\" target=\"_blank\"\u003e \u003cimg height=\"\" src=\"https://img.shields.io/static/v1?label=\u0026message=Visual%20Studio%20Code\u0026color=5C2D91\u0026logo=Visual%20Studio%20Code\u0026logoColor=5C2D91\u0026labelColor=2F333A\" alt=\"Suite CRM\"\u003e\u003c/a\u003e \u003c/a\u003e\u003c!-- git --\u003e \u003ca href=\"https://git-scm.com/\" target=\"_blank\"\u003e \u003cimg height=\"\" src=\"https://img.shields.io/static/v1?label=\u0026message=Git\u0026color=F05032\u0026logo=Git\u0026logoColor=F05032\u0026labelColor=2F333A\" alt=\"git distributed version control system\"\u003e\u003c/a\u003e \u003c!-- github --\u003e \u003ca href=\"https://github.com\" target=\"_blank\"\u003e \u003cimg height=\"\" src=\"https://img.shields.io/static/v1?label=\u0026message=GitHub\u0026color=181717\u0026logo=GitHub\u0026logoColor=f2f2f2\u0026labelColor=2F333A\" alt=\"Github\"\u003e\u003c/a\u003e\n \u003c!-- Style guidelines --\u003e\n* Style :\n    * [PEP8](https://pep8.org/)\n\n\n## ``3-Installation``\n1.  Clone this GitHub repository to your local machine.\n\n`git clone https://github.com/nuuxcode/AirBnB-Clone.git`\n\n2.  Navigate to the project directory.\n\n`cd AirBnB-Clone` \n\n3.  Execute the console.\n\n`./console.py`\n\n### Execution \n\nInteractive mode\n\n```\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```\nNon Interactive mode\n```\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## ``4-Usage``\n\n* Start the console in interactive mode:\n\n```bash\n$ ./console.py\n(hbnb)\n```\n\n* Use help to see the available commands:\n\n```bash\n(hbnb) help\n\nDocumented commands (type help \u003ctopic\u003e):\n========================================\nEOF  all  count  create  destroy  help  quit  show  update\n\n(hbnb)\n```\n\n* Quit the console:\n\n```bash\n(hbnb) quit\n$\n```\n\n* create\n\n\u003e *Creates a new instance of a given class. The class' ID is printed and the instance is saved to the file file.json.*\n\n```bash\n(hbnb) create BaseModel\n57262839-51d7-4a9a-93e2-35ed8e91d823\n$\n```\n\n* show \n\n\u003e *Deletes an instance of a given class with a given ID.*\n\u003e *Update the file.json*\n\n```bash\n(hbnb) show BaseModel 57262839-51d7-4a9a-93e2-35ed8e91d823\n[BaseModel] (57262839-51d7-4a9a-93e2-35ed8e91d823) {'id': '57262839-51d7-4a9a-93e2-35ed8e91d823', 'created_at': datetime.datetime(2023, 8, 13, 14, 19, 19, 412265), 'updated_at': datetime.datetime(2023, 8, 13, 14, 19, 19, 412357)}\n(hbnb)\n(hbhb)\n```\n\n* all\n\n\u003e *Prints all string representation of all instances of a given class.*\n\u003e *If no class is passed, all classes are printed.*\n\n```bash\n(hbnb) all\n[BaseModel] (57262839-51d7-4a9a-93e2-35ed8e91d823) {'id': '57262839-51d7-4a9a-93e2-35ed8e91d823', 'created_at': datetime.datetime(2023, 8, 13, 14, 19, 19, 412265), 'updated_at': datetime.datetime(2023, 8, 13, 14, 19, 19, 412357)}\n(hbnb) all BaseModel\n[BaseModel] (57262839-51d7-4a9a-93e2-35ed8e91d823) {'id': '57262839-51d7-4a9a-93e2-35ed8e91d823', 'created_at': datetime.datetime(2023, 8, 13, 14, 19, 19, 412265), 'updated_at': datetime.datetime(2023, 8, 13, 14, 19, 19, 412357)}\n```\n* destroy\n\n\u003e*Deletes an instance of a given class with a given ID.*\n\u003e*Update the file.json*\n\n```bash\n(hbnb) destroy\n** class name missing **\n(hbnb) destroy BaseModel\n** instance id missing **\n(hbnb) destroy BaseModel 57262839-51d7-4a9a-93e2-35ed8e91d823\n(hbnb) all\n[]\n```\n\n* count \n\n\u003e *Prints the number of instances of a given class.*\n\n```bash\n(hbnb) create User\nce5f7ac5-4b2e-4c90-933d-6c78e69ab1c7\n(hbnb) create User\ndd697519-4ac9-42e0-80e2-fa7b3ac61193\n(hbnb) create User\n52c4036b-f018-49d0-8d93-d7a2d56bcdad\n(hbnb) count User\n3\n```\n\n## ``5-Testing``\n\n* unittest module\n* File extension ``` .py ```\n* Files and folders star with ```test_```\n* Organization:for ```models/base.py```, unit tests in: ```tests/test_models/test_base.py```\n* Execution command: ```python3 -m unittest discover tests```\n* or: ```python3 -m unittest tests/test_models/test_base.py```\n\n### run TEST interactive mode\n\n```bash\necho \"python3 -m unittest discover tests\" | bash\n```\n\n### run TEST non-interactive mode\n\nTo run the tests in non-interactive mode, and discover all the test, you can use the command:\n\n```bash\npython3 -m unittest discover tests\n```\n\n## ``6-Authors``\n\n-   [Soumia Ouzat](https://github.com/SouaOui)\n-   [Mounssif Bouhlaoui](https://github.com/nuuxcode)\n\n## ``7- License``\n\nThis project is licensed under the MIT License - see the [LICENSE](https://chat.openai.com/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuuxcode%2Fairbnb_clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuuxcode%2Fairbnb_clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuuxcode%2Fairbnb_clone/lists"}