Giter VIP home page Giter VIP logo

airbnb_clone's Introduction

AirBnB Clone Project

AirBnB

This project is being undertaken by The ALX School as part of their curriculum.

Introduction

The objective of this project is to create a simplified version of the AirBnB website. While the project won't encompass all the features of the original website, it will cover essential concepts from the higher-level programming track.

Phase 1: Development of the Command Interpreter

The primary task in this initial phase is to build a command interpreter that facilitates the management of AirBnB objects.

What is a Command Interpreter?

In essence, a command interpreter resembles the functionality of a shell, but it's tailored to a specific use-case. For this project, the command interpreter enables us to handle various tasks related to our project objects:

  1. Creation of New Objects: This involves generating new instances of objects like Users or Places.
  2. Retrieval of Objects: The interpreter should allow us to retrieve objects from different sources, such as files or databases.
  3. Object Operations: We'll be able to perform operations on objects, such as counting objects or computing statistics.
  4. Object Attribute Updates: The interpreter will facilitate the modification of object attributes.
  5. Object Deletion: It will be possible to remove objects from the system.

By accomplishing this phase, we'll lay a solid foundation that will be employed and expanded upon in the subsequent project phases, which include HTML/CSS templating, database storage, API integration, and front-end development.

The Usage of the console

    $ ./console.py
    (hbnb) help

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

    (hbnb) 
    (hbnb) 
    (hbnb) quit
$

also can be used in non-interactive mod

    $ 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) 
    $

the commands that are available

Available Commands

Command Description
create Create a new instance of a specified model.
all List all data for the created model instances.
show Display data for a specific model instance.
count Count the number of instances for a model.
destroy Delete a model instance by its ID.
update Modify data for a specific model instance.
quit Exit the console.
help List available commands or get help for a command

airbnb_clone's People

Contributors

abdogouhmad avatar adilmajhoul avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

abdogouhmad

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.