Giter Site home page Giter Site logo

airbnb_clone's Introduction

0x00. AirBnB clone - The console

Index

  1. General Info
  2. Evironment
  3. Installation
  4. Guide
  5. Directories
  6. Collaboration

General Info

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.

Evironment

|      Basic Ubuntu 20.04      |       Python 3.8.10      |      NeoVim 0.4.0      |      Vim 8.1.2269     |

Style guidelines

Installation

A little intro about the installation.

$ git clone https://github.com/Diego-Guarise/AirBnB_clone.git

Guide

$ 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) 

Below an example of how to create an instance:

(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
$

Directories

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

Collaboration

Marcelo Arbiza Diego Guarise
GitHub GitHub
Linkedin Linkedin

airbnb_clone's People

Contributors

diego-guarise avatar marceloarbiza avatar

Watchers

 avatar

Forkers

marceloarbiza

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.