Skip to content

Deploy on a server a simple copy of the AirBnB website with command interpreter to manipulate data without a visual interface.

Notifications You must be signed in to change notification settings

baydre/AirBnB_clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AirBnB clone - The console

Table of Contents

Description of Project

This project is an implementation of an AirBnB clone, focusing on the core components that make up the AirBnB service. These components include the console, models, and the storage engine. The console acts as the command-line interface for interacting with the system. The models represent the various objects and data structures used in the AirBnB system, while the storage engine is responsible for managing data storage.

Description of the Command Interpreter

The command interpreter, often referred to as the console, is the gateway to interacting with the AirBnB clone system. It allows users to perform various operations, such as creating, updating, and deleting instances, and viewing information about them.

How to start it

To start the console, follow these steps:

  1. Enter the project directory.
  2. Navigate to the models directory.
  3. Run the ./console.py script.

How to use it

Once the console is running, you can interact with the AirBnB clone by using various commands. Some of the supported operations include:

  • Creating new instances and saving them to a JSON file.
  • Displaying the string representation of instances.
  • Deleting instances.
  • Displaying all string representations of instances.
  • Updating instances.

Examples

Here are a few examples of how you can use the console:

  • Create a new instance:

    (hbnb) create BaseModel
    # Show string representation of instances
    (hbnb) show BaseModel 12345
    # Delete an instance
    (hbnb) destroy BaseModel 12345
    # List all instances:
    (hbnb) all BaseModel
    # Update an instance:
    (hbnb) update BaseModel 12345 name "New Name"
    

Contributors

About

Deploy on a server a simple copy of the AirBnB website with command interpreter to manipulate data without a visual interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages