Skip to content

Learning to work from an existing codebase

Notifications You must be signed in to change notification settings

soloHub/AirBnB_clone_v2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AirBnB_clone_v2

HolbertonBnB logo

An AirBnB clone


Description :ALXBnB:

ALXBnB is a complete web application, integrating database storage, a back-end API, and front-end interfacing in a clone of AirBnB.

The project currently only implements the back-end console.

HBNB

This is the console /command interpreter for the ALXBnB clone project. The console can be used to store objects in and retrieve objects from a JSON.

Supported classes:

  • BaseModel
  • User
  • State
  • City
  • Amenity
  • Place
  • Review

Commands:

  • create - create an object
  • show - show an object (based on id)
  • destroy - destroy an object
  • all - show all objects, of one type or all types
  • quit/EOF - quit the console
  • help - see descriptions of commands

To start, navigate to the project folder and enter ./console.py in the shell.

Create

create <class name> Ex: create BaseModel

Show

show <class name> <object id> Ex: show User my_id

Destroy

destroy <class name> <object id> Ex: destroy Place my_place_id

All

all or all <class name> Ex: all or all State

Quit

quit or EOF

Help

help or help <command> Ex: help or help quit

Additionally, the console supports <class name>.<command>(<parameters>) syntax. Ex: City.show(my_city_id)

Authors:

About

Learning to work from an existing codebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 46.9%
  • Python 28.3%
  • CSS 24.8%