π In this project we created version 2 of the Airbnb Clone where we will connect with the databases to continue with the advancement of it.
- Allowed editors:
vi
,vim
,emacs
. - Files will be interpreted/compiled on Ubuntu 20.04 LTS using python3 (version 3.8.5).
- Files must be executable.
- The length of your files will be tested using
wc
.
- All your test files should be inside a folder
tests
. - You have to use the unittest module.
- All your test files should be python files (extension:
.py
). - All your test files and folders should start by
test_
. - Your file organization in the tests folder should be the same as your project: ex: for
models/base_model.py
, unit tests must be in:tests/test_models/test_base_model.py
.
- Files will be executed on Ubuntu 20.04 LTS using
MySQL 8.0
. - Files will be executed with
SQLAlchemy
version1.4.x
. - All SQL keywords should be in uppercase (
SELECT
,WHERE
β¦). - The length of your files will be tested using
wc
.
- Code should use the PEP 8 style (version 2.7.*).
$ cat my_script.sql
-- first 3 students in the Batch ID=3
-- because Batch 3 is the best!
SELECT id, name FROM students WHERE batch_id = 3 ORDER BY created_at DESC LIMIT 3;
$
This repository contains the initial stage of a student project to build a clone of the AirBnB website. This stage implements a backend interface, or console, to manage program data. Console commands allow the user to create, update, and destroy objects, as well as manage file storage. Using a system of JSON serialization/deserialization, storage is persistent between sessions. this command is run the following prompt should appear:
(hbnb)
- This prompt designates you are in the "HBnB" console. There are a variety of commands available within the console program.
* create - Creates an instance based on given class
* destroy - Destroys an object based on class and UUID
* show - Shows an object based on class and UUID
* all - Shows all objects the program has access to, or all objects of a given class
* update - Updates existing attributes an object based on class name and UUID
* quit - Exits the program (EOF will as well)
31dfc777d2965f679aa3b022f953dcdbb7ea5d48