Code Monkey home page Code Monkey logo

airbnb_clone's Introduction

AirBnB Clone CLI

Command line interpreter for AirBnB clone.

Overview

This is a simple CLI program that allows you to manage a collection of objects and store them in a JSON file.

Commands

Available commands:

  • create <class_name>: Creates a new instance of the specified class.
  • show <class_name> <id>: Displays information about the instance with the specified ID.
  • destroy <class_name> <id>: Deletes the instance with the specified ID.
  • all [class_name]: Displays information about all instances, or all instances of a specific class if provided.
  • update <class_name> <id> <attribute_name> <attribute_value>: Updates the attribute of the specified instance with the given value.
  • count <class_name>: Counts the number of instances of the specified class.

or:

<class_name> with:

  • .show(<id>)
  • .all()
  • .destroy(<id>)
  • .update(<id>, <attribute_name>, <attribute_value>) | update(<id>, <dictionary representation>)
  • .count()

Classes

Available classes:

  • User has the following attributes: first_name, last_name, email, password
  • Place has the following attributes: city_id, user_id, name, description, number_rooms, number_bathrooms, max_guest, price_by_night, latitude, longitude, amenity_ids
  • State has the following attributes: name
  • City has the following attributes: state_id, name
  • Amenity has the following attributes: name
  • Review has the following attributes: place_id, user_id, text

airbnb_clone's People

Contributors

amedoeyes avatar osama-elshimy avatar

Watchers

 avatar  avatar

Forkers

osama-elshimy

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.