In this project we will build the airBnB Clone base and then use this in our future projects: HTML / CSS templating, database storage, API, front-end integration.
| Basic Ubuntu 20.04 |
Python 3.8.10 |
NeoVim 0.4.0 |
Vim 8.1.2269 |
- Pycodestyle - version 2.7.*
- PEP8
A little intro about the installation.
$ git clone https://github.com/Diego-Guarise/AirBnB_clone.git
$ cd ./AirBnB_clone
$ ./console.py
Now the console will look like this
(hbnb)
This is the props. When type help all available commands appear. if you type help you will see the information individually
(hbnb) help
Documented commands (type help <topic>):
========================================
EOF all count create destroy help quit show update
(hbnb)
Now we will add a command to help
(hbnb) help create
Creates a new instance of BaseModel, saves it (to the JSON file) and prints the id
(hbnb)
(hbnb) create State
dc4dd825-d14d-4118-8c37-84c76a2eec38
or
(hbnb) State.create()
f21992ef-fb5a-49ea-bc55-a85abbba1d8f
If you type wrong or missing an argument, the console will tell you ;)
(hbnb) create
** class name missing **
or
(hbnb) create()
** class name missing **
If you will go out, use the command
(hbnb) quit
$
Directory | Descripción |
---|---|
/tests | Unittest files |
/models | BaseModel class and Inherited class instances |
/models/engine | Serializes instances to a JSON file and deserializes JSON file to instances |
Marcelo Arbiza | Diego Guarise |
---|---|
GitHub | GitHub |