This is the first step towards building the AirBnB clone, it uses a simple flow of serialization/deserialization to store data using File storage. This was entirely written in Python for a project for Holberton School.
First step, clone this repository in order to obtain all the files in your local machine.
git clone https://github.com/OctaveC/AirBnB_clone
This program is used through a shell. You can run it in interactive mode, where you can exit using Ctrl+D or typing exit, and in non-interactive mode, which will exit right after the execution of the command.
./console.py
For non-interactive mode :
echo "help" | ./console.py
- create: "create " Creates a new instance of one of the available classes, which are BaseModel, User, City, State, Anemity, Place, and Review.
- destroy: "destroy " Deletes an instance of a class.
- update: "update " Updates the attributes of an instance of a class.
- show: "show " Prints the attributes of an instance of a class.
- all: "all " Prints all instances of a class.
- help: "help " displays information about one of the availables commands.
- EOF: (Ctrl + D) Exits the program.
- quit: Exits the program.