The AirBnB clone project is a simple copy of the AirBnB website that will be deployed on a server.
It implements only some of the features that cover fundamental concepts of the higher level programming track.
This project will be built step by step not all at once. It has different components.
- creating a data model
- manage (create, update, destroy, read) objects via a console / command interpreter
- store and persists objects to a file (JSON file)
The first piece is to manipulate a powerful storage system. The storage engine gives an abstraction between the objects and how they are stored an persisted. It will allow easy change in storage without need to update the entire codebase.
The console can be used both interactively and non-interactively.
$ ./console.py
(hbnb) help
Documented commands (type help <topic>):
========================================
EOF help quit
(hbnb)
(hbnb)
(hbnb) quit
$
$ 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)
$
Command | Function | Usage |
---|---|---|
create | Creates an instance of a class | +create classname |
show | Prints string representation of an instance of a class | +show classname id |
all | Prints string representation of all instances of a class | +all (classname is optional) |
update | Adds or updates attributes of an instance. | +update classname id attributename attributevalue |
count | Prints the number of intances of a class. | +classname.count() |
help | Prints information about the different functionality of the console. | +help command. The command can be ommitted, this will output all commands for which a help function exists for. |
No known bugs
Denis Harold Maanga - [email protected]
Stephen Adeyemo - [email protected]
05th August 2022