Giter Site home page Giter Site logo

airbnb_clone's Introduction

0x00. AirBnB clone - The console

Synopsis

The Airbnb clone project for which we are creating a copy of the Airbnb. This is the first step towards building our first full web application.In this clone, only some features will be implemented and will be listed below once completed.

How to use the console?

Have you ever worked with the unix shell before? If yes, then that's exactly how this console works It works both in interactive and non-interactive mode, the prompt (hbnb) is first display and wait for the user for input.

Usage

To launch the application:

  • interactive mode

./console.py

  • non-interactive mode

echo ""command" | ./console.py

Commands

Commands Description Usage
help Display commands that are documented help
help Display documented help for a command (hbnb) help <command>
quit Exits the program. (hnbnb) quit
EOF Exits the program when an EOF signal is recieved. crtrl d
create Create an object, creates a json file with objects presentation and prints its id (hbnb) create <class_name>
show Prints string representation of an object based on the given class name and id (hbnb) show <class_name> <id> (hbnb) <class_name>.show(<id>)
destroy Deletes an object based on the given class name and id. (hbnb) destroy <class_name> <id> (hbnb) <class_name>.destroy(<id>)
all Query all the object and print a list of all objects in a string format (hbnb) all <class_name> (hbnb) <class_name>.all()
update Update an object base on the given class name and id, it's update or add attribute update <class_name> <id> <attribute name> <attribute value> (hbnb) <class_name>.update(<id>, <attribute name>, <attribute value>)
count Retrieve the number of instances of a class (hbnb) <class_name>.count()

Validate your html and css files

For HTML single file in current or child directory

./w3c_validator.py 0-index.html or ./w3c_validator.py ./folder_name/0-index.html

For HTML integrative validation

./w3c_validator.py *.html or ./w3c_validator.py ./folder_name/*.html

For CSS single file in current or child directory

./w3c_validator.py index.css or ./w3c_validator.py ./folder_name/index.css

For HTML integrative validation

./w3c_validator.py *.html or ./w3c_validator.py ./folder_name/*.css

Python is a prerequisite for testing your static files, please install it and also install the requests module

python3 -m pip install requests

airbnb_clone's People

Contributors

sangaryousmane avatar gbabohernest avatar

Watchers

 avatar

Forkers

gbabohernest

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.