Skip to content

AirBnB Clone - The Console This is a simplified clone of AirBnB's data management system, part of the "Alx" Software Engineering program. It includes a custom command-line interface for managing data in both interactive and non-interactive modes.

Notifications You must be signed in to change notification settings

hackerSa3edy/AirBnB_clone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

0x00. AirBnB clone - The console

hbnb logo

Description 🏷

Welcome to the AirBnB clone project!
This team project is part of the "Alx" Software Engineering program. It represents the first step towards building a full web application.

This first step consists of:
a custom command-line interface for data management, and the base classes for the storage of this data.

Usage 💻

The console works both in interactive mode and non-interactive mode, much like a Unix shell. It prints a prompt (hbnb) and waits for the user for input.

Command Example
Run the console ./console.py
Quit the console (hbnb) quit
Display the help for a command (hbnb) help <command>
Create an object (prints its id) (hbnb) create <class>
Show an object (hbnb) show <class> <id> or (hbnb) <class>.show(<id>)
Destroy an object (hbnb) destroy <class> <id> or (hbnb) <class>.destroy(<id>)
Show all objects, or all instances of a class (hbnb) all or (hbnb) all <class>
Update an attribute of an object (hbnb) update <class> <id> <attribute name> "<attribute value>" or (hbnb) <class>.update(<id>, <attribute name>, "<attribute value>")

Interactive mode (example)

$ ./console.py
(hbnb) help

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

(hbnb)
(hbnb)
(hbnb) quit
$

Non-interactive mode (example)

All tests should also pass in non-interactive mode:

$ echo "python3 -m unittest discover tests" | bash
$ 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)
$

layout

Tests ✔

  • tests: Folder of test files.

Tasks

0. README, AUTHORS

1. Be pycodestyle compliant!
Write beautiful code that passes the pycodestyle checks.

2. Unittests
All your files, classes, functions must be tested with unit tests

3. BaseModel

4. Create BaseModel from dictionary

5. Store first object

6. Console 0.0.1

7. Console 0.1

8. First User

9. More classes!

10. Console 1.0

Authors

About

AirBnB Clone - The Console This is a simplified clone of AirBnB's data management system, part of the "Alx" Software Engineering program. It includes a custom command-line interface for managing data in both interactive and non-interactive modes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 72.6%
  • HTML 16.2%
  • CSS 11.2%