Giter VIP home page Giter VIP logo

airbnb_clone's Introduction

Project logo

Airbnb Clone

AirBnB project

๐Ÿ“ Table of Contents

About

This is a Airbnb clone projects that will be build with the aim to learn and apply concepts of high level programming and software engineering in general

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Python3

Installing

Clone this repository

git clone [email protected]:callistus406/AirBnB_clone.git
cd AirBnB_clone
./console.py

๐Ÿ”ง Running the tests

This project uses the python unittest model

Run all unit tests

python3 -m unittest discover tests

Run a test from a specific file

python3 -m unittest tests/tespytestt_models/test_base_model.py

Usage

You can run the schell (in an interactive or non-interactive mode) to manipulate your models. You can start it from running the console.py file:

$ ./console.py

The following commands are supported:

create:

Creates a new instance of BaseModel, saves it (to the JSON file) and prints the id. Ex:

$ create BaseModel

show:

Prints the string representation of an instance based on the class name and id. Ex:

$ show BaseModel 1234-1234-1234.

destroy:

Deletes an instance based on the class name and id (save the change into the JSON file). Ex:

$ destroy BaseModel 1234-1234-1234.

all:

Prints all string representation of all instances based or not on the class name. Example to show all instances

$ all

Example to show all instances of BaseModel only

$ all BaseModel

update:

Updates an instance based on the class name and id by adding or updating attribute (save the change into the JSON file). Ex:

$ update BaseModel 1234-1234-1234 email "[email protected]"

quit:

Quit the shell

Built Using

  • Python - Programming language

โœ๏ธ Authors

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.