Skip to content

Nathan-88/AirBnB_clone

Repository files navigation

Alt text

0x00. AirBnB clone - The console

Airbnb is a full-stack web application that includes database storage, a back-end API and front-end interface.

This is the first step/edition towards building this full web application. The goal is to create a command interpreter for the Airbnb objects. this also serves as a debugging tool for the programmer/command handler because it is an interactive console that provides you with a quick way to create your data model, manage (create, update, destroy, etc) objects via a console / command interpreter, store and persist objects to a file (JSON file), and also to execute commands and try out or test codes without creating a file.
This first part of the project is crucial and also the building block where the HTML/CSS templating, database storage, API, and front-end interface will be integrated.

The console

  • create your data model
  • manage (create, update, destroy, etc) objects via a console / command interpreter
  • store and persist objects to a file (JSON file) The first piece is to manipulate a powerful storage system. This storage engine will give us an abstraction between “My object” and “How they are stored and persisted”. This means: from your console code (the command interpreter itself) and from the front-end and RestAPI you will build later, you won’t have to pay attention (take care) of how your objects are stored.

This abstraction will also allow you to change the type of storage easily without updating all of your codebase.

The console will be a tool to validate this storage engine

Alt text

Concepts Employed In This Project:

Testing

How to start and use this command interpreter:

  • Clone this repository -> git clone https://github.com/Nathan-88/AirBnB_clone.git
  • Access the directory -> cd AirBnB_clone
  • Run the console application interactively:
$ ./console.py
(hbnb) help

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

(hbnb) 
(hbnb) 
(hbnb) quit
$
  • Or, You can also run it non interactively:
$ 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) 
$

Authors:

About

The AirBnB clone project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published