{"id":19468832,"url":"https://github.com/ndevu12/airbnb_clone","last_synced_at":"2025-02-25T14:27:20.522Z","repository":{"id":221657607,"uuid":"753624397","full_name":"Ndevu12/AirBnB_clone","owner":"Ndevu12","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-18T17:16:32.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T04:51:28.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Ndevu12.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":"2024-02-06T13:46:40.000Z","updated_at":"2024-02-10T12:59:03.000Z","dependencies_parsed_at":"2024-02-22T05:15:21.137Z","dependency_job_id":null,"html_url":"https://github.com/Ndevu12/AirBnB_clone","commit_stats":null,"previous_names":["ndevu12/airbnb_clone"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ndevu12%2FAirBnB_clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ndevu12%2FAirBnB_clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ndevu12%2FAirBnB_clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ndevu12%2FAirBnB_clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ndevu12","download_url":"https://codeload.github.com/Ndevu12/AirBnB_clone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240682971,"owners_count":19840606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10T18:44:17.917Z","updated_at":"2025-02-25T14:27:20.497Z","avatar_url":"https://github.com/Ndevu12.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AirBnB Clone - The Console\r\n\r\n## Project Goal\r\n\r\nThe primary goal of this project is to deploy a simplified version of the AirBnB website on a server. While not implementing all the features, it aims to cover fundamental concepts of the higher level programming track.\r\n\r\n## First Step: Command Interpreter\r\n\r\nThe initial step involves building a command interpreter to manage AirBnB objects. This command interpreter is similar to a limited-use Shell, specifically tailored for our project's needs. It enables us to:\r\n\r\n- Create new objects (e.g., User or Place)\r\n- Retrieve objects from files or databases\r\n- Perform operations on objects (count, compute stats, etc.)\r\n- Update attributes of an object\r\n- Destroy an object\r\n\r\n## Execution\r\n\r\nThe command interpreter can be used both interactively and non-interactively.\r\n\r\n### Interactive Mode\r\n\r\n```bash\r\n$ ./console.py\r\n(hbnb) help\r\n\r\nDocumented commands (type help \u003ctopic\u003e):\r\n========================================\r\nEOF  help  quit\r\n\r\n(hbnb) \r\n(hbnb) \r\n(hbnb) quit\r\n$\r\n```\r\n### Non-Interactive Mode\r\n```bash\r\n\r\n$ echo \"help\" | ./console.py\r\n(hbnb)\r\n\r\nDocumented commands (type help \u003ctopic\u003e):\r\n========================================\r\nEOF  help  quit\r\n(hbnb) \r\n$\r\n$ cat test_help\r\nhelp\r\n$\r\n$ cat test_help | ./console.py\r\n(hbnb)\r\n\r\nDocumented commands (type help \u003ctopic\u003e):\r\n========================================\r\nEOF  help  quit\r\n(hbnb) \r\n$\r\n```\r\n## Commands\r\n\r\n- `create`: Create an object\r\n- `show`: Show an object (based on id)\r\n- `destroy`: Destroy an object\r\n- `all`: Show all objects, of one type or all types\r\n- `update`: Updates an instance based on the class name and id\r\n- `quit/EOF`: Quit the console\r\n- `help`: See descriptions of commands\r\n\r\n# Getting Started\r\n\r\nTo start the console, type the following command in the shell:\r\n\r\n```bash\r\nAirBnB_clone$ ./console.py\r\n(hbnb) \r\n```\r\n# Object Management Commands\r\n\r\n## Create\r\n\r\nTo create an object, use the format `create \u003cclass_name\u003e`:\r\n\r\n```bash\r\n(hbnb) create BaseModel\r\n```\r\n## Show\r\n\r\nTo show an instance based on the class name and id, use:\r\n\r\n```bash\r\n(hbnb) show BaseModel 1234-1234-1234.\r\n```\r\n## Destroy\r\n\r\nTo delete an instance of an object, use:\r\n\r\n```bash\r\n(hbnb) destroy BaseModel 1234-1234-1234.\r\n```\r\n## All\r\n\r\nTo show all instances or all instances of a specific type, use:\r\n\r\n```bash\r\n(hbnb) all\r\n(hbnb) all State\r\n```\r\n\r\n## Update\r\n\r\nTo update an instance based on the class name and id, use:\r\n\r\n```bash\r\n(hbnb) update BaseModel 1234-1234-1234 email \"niyokwizerwajeanpaulelisa@gmail.com\"\r\n```\r\n\r\n## Quit\r\n\r\nTo exit the console, use:\r\n\r\n```bash\r\n(hbnb) quit\r\n```\r\n\r\n## Help\r\n\r\nTo get help on commands, use:\r\n\r\n```bash\r\n(hbnb) help\r\n(hbnb) help quit\r\n```\r\n# Supported Classes\r\n\r\n- BaseModel\r\n- User\r\n- State\r\n- City\r\n- Amenity\r\n- Place\r\n- Review\r\n\r\n# Authors\r\n\r\n- `(Ndevu)` NIYOKWIZERWA Jean Paul Elisa - niyokwizerwajeanpaulelisa@gmail.com `linkedIn` - http://linkedin.com/in/jean-paul-elisa\r\n- Musah Adomah - kwamemusah51@gmail.com\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndevu12%2Fairbnb_clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndevu12%2Fairbnb_clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndevu12%2Fairbnb_clone/lists"}