#AirBnB clone - MySQL
This is a Full-Stack AirBnB Clone program that uses Python, SQL, SQLalchemy, RESTfulApi, jquery, Html, CSS
Project done during Full Stack Software Engineering studies at ALX SE School.
- Scripts written in Bash 4.3.11(1)
- C files are compiled using
gcc 4.8.4
- Tested on Ubuntu 20.04 LTS The console can be used to store objects in and retrieve objects from a JSON.
- BaseModel
- User
- State
- City
- Amenity
- Place
- Review
- 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 <class name>
Ex:
create BaseModel
show <class name> <object id>
Ex:
show User my_id
destroy <class name> <object id>
Ex:
destroy Place my_place_id
all
or all <class name>
Ex:
all
or all State
quit
or EOF
help
or help <command>
Ex:
help
or help quit
Additionally, the console supports <class name>.<command>(<parameters>)
syntax.
Ex:
City.show(my_city_id)