Git Product home page Git Product logo

airbnb_clone_v3's Introduction

AirBnB Clone_v2 - Command Interpreter

Project Description

This project serves as the foundational step in creating an AirBnB clone, featuring a command-line interpreter designed to manage AirBnB objects. The command interpreter empowers users to perform essential CRUD (Create, Read, Update, Delete) operations on objects, as well as execute various commands to manipulate and query the application's data.

Command Interpreter

How to Start

To launch the command interpreter, execute the console.py script from the terminal:

$ ./console.py

How to Use

Once the command interpreter is running, you can use the following commands:

  • help: Display a list of available commands with their descriptions.
  • quit or EOF: Exit the command interpreter.
  • create: Create a new instance of a specified class.
  • update: Update the attributes of an existing object.
  • show: Display information about a specific object.
  • destroy: Remove a specified object.
  • all: Display information about all objects or all objects of a specific class.

Examples

  • Interactive Mode
$ ./console.py
(hbnb) help
Documented commands (type help <topic>):
========================================
EOF  help  quit
(hbnb) quit
$
  • Non-interactive Mode
$ echo "help" | ./console.py
(hbnb)

Documented commands (type help <topic>):
========================================
EOF  help  quit
(hbnb)
$
$ cat test_help
help
$
$ cat test_help | ./console.py
(hbnb)

Documented commands (type help <topic>):
========================================
EOF  help  quit
(hbnb)
$

Console Commands

  • Create
$(hbnb) create User
  • Update
$(hbnb) update User 1234-5678-9012 first_name "John"
  • Show
$(hbnb) show User 1234-5678-9012
  • Destroy
$(hbnb) destroy User 1234-5678-9012
  • All
$(hbnb) all
  • All for a Specific Class
$(hbnb) all User

Console Commands

  • Object Management: Easily create, retrieve, update, and delete objects within the AirBnB application.

  • Interactive and Non-interactive Modes: Use the command interpreter interactively or supply commands via scripts for automated workflows.

Authors

  • Basem Ahmed
  • Nada Shaban

Acknowledgments

  • Special thanks to the ALX staff for their guidance and support throughout the development of this project.

airbnb_clone_v3's People

Contributors

alexaorrico avatar devbasem avatar jhuang10123 avatar jvpupcat avatar nadashaban10 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.