Skip to content

AirBnB_clone team project at ALX SE program. It aimed at developing our web developing skills by creating the exact replica of the Air BNB website using HTML and CSS for it's front end, python for it backend and SQL for it's database. NB: Currently it is not done. By Bikila Ketema & Bekalu Endrias.

Notifications You must be signed in to change notification settings

bekalue/AirBnB_clone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Airbnb clone project for which we are creating a copy of the Airbnb. Only some features will be implemented and will be listed below once completed.

Features

Command Interpreter

Description

The Command Interpreter is used to manage the whole application's functionality from the command line, such as:

  • Crete a new object.
  • Retrieve an object from a file, database, etc.
  • Execute operation on objects. e.g. Count, compute statistics, etc.
  • Update object's attributes.
  • Destroy an object.

Usage

To launch the console application in interactive mode simply run:

console.py

or to use the non-interactive mode run:

echo "your-command-goes-here" | ./console.py

Commands

Commands Description Usage
help or ? Displays the documented commands. help
exit Exits the program. exit
EOF Ends the program. Used when files are passed into the program. N/A
create Creates a new instance of the <class_name>. Creates a Json file with the object representation. and prints the id of created object. create <class_name>
show Prints the string representation of an instance based on the class name and id. show <class_name class_id>
destroy Deletes and instance base on the class name and id. destroy <class_name class_id>
all Prints all string representation of all instances based or not on the class name all or all <class_name class_id>
update Updates an instance based on the class name and id by adding or updating attribute update <class_name class_id key value>

Tests

If you wish to run at the test for this application all of the test are located under the test/ folder and can execute all of them by simply running:

python3 -m unittest discover tests

from the root directory.

About

AirBnB_clone team project at ALX SE program. It aimed at developing our web developing skills by creating the exact replica of the Air BNB website using HTML and CSS for it's front end, python for it backend and SQL for it's database. NB: Currently it is not done. By Bikila Ketema & Bekalu Endrias.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 63.1%
  • Python 23.2%
  • CSS 13.7%