Table of content |
---|
About this Project |
Setting up |
Environment |
Execution |
Team project to build a clone of AirBnB.
The console is a command interpreter to manage objects abstraction between objects and how they are stored.
To see the fundamental background of the project visit the Wiki.
The console will perform the following tasks:
- create a new object
- retrieve an object from a file
- do operations on objects
- destroy an object
- cmd module
- uuid module
- datetime
- unittest module
- args/kwargs
- Python test cheatsheet
- cmd module wiki page
- python unittest
All the classes are handled by the Storage
engine in the FileStorage
Class.
All the development and testing was run over an operating system Ubuntu 20.04 LTS using programming language Python 3.10. The editors used were VIM Editor, Control version using Git
git clone https://github.com/mhiskall282/AirBnB_clone.git
change to the AirBnb
directory and run the command:
./console.py
In interactive mode:
$ ./console.py
(hbnb) help
Documented commands (type help <topic>):
========================================
EOF help quit
(hbnb)
(hbnb)
(hbnb) quit
$
In non-interactive
$ 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)
$