/AirBnB_clone

This is the first step towards building our first full web application: the AirBnB clone. This first step is very important because we will use what we build during this project with all other following projects: HTML/CSS templating, database storage, API, front-end integration…

Primary LanguagePython

Welcome to the AirBnB clone project!

Description

What’s a command interpreter?

In this project, you will write a command interpreter to manage your AirBnB objects.

This is the first step towards building your first full web application: the AirBnB clone.

This first step is very important because we will use what we build during this project with all other following projects: HTML/CSS templating, database storage, API, front-end integration…

how to start it?

Interactive mode

$ ./console.py

(hbnb) help

Documented commands (type help ):

========================================

EOF help quit

(hbnb)

(hbnb) quit

$

Non-interactive mode: $ echo "help" | ./console.py

(hbnb)

how to use it?

create

(hbnb) create BaseModel

7e8a7e8a-7e8a-7e8a-7e8a-7e8a7e8a7e8a

(hbnb)

(hbnb) show BaseModel 7e8a7e8a-7e8a-7e8a-7e8a-7e8a7e8a7e8a

[BaseModel] (7e8a7e8a-7e8a-7e8a-7e8a-7e8a7e8a7e8a) {'id': '7e8a7e8a-7e8a-7e8a-7e8a-7e8a7e8a7e8a', 'created_at': datetime.datetime(2017, 9, 28, 21, 3, 54, 972612), 'updated_at': datetime.datetime(2017, 9, 28, 21, 3, 54, 972612)}

(hbnb)

(hbnb) all

["[BaseModel] (7e8a7e8a-7e8a-7e8a-7e8a-7e8a7e8a7e8a) {'id': '7e8a7e8a-7e8a-7e8a-7e8a-7e8a7e8a7e8a', 'created_at': datetime.datetime(2017, 9, 28, 21, 3, 54, 972612), 'updated_at': datetime.datetime(2017, 9, 28, 21, 3, 54, 972612)}"]

(hbnb)

(hbnb) destroy BaseModel 7e8a7e8a-7e8a-7e8a-7e8a-7e8a7e8a7e8a

(hbnb)

(hbnb) all

[]

(hbnb)

(hbnb) quit