Giter Site home page Giter Site logo

wefixte / holbertonschool-airbnb_clone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from git-alexis/holbertonschool-airbnb_clone

0.0 0.0 0.0 45 KB

AirBnB project - Fork from the original repository, group work

Python 66.16% HTML 23.11% CSS 10.73%

holbertonschool-airbnb_clone's Introduction

AirBnB clone - The console

Welcome to the AirBnB Clone Console! This console serves as the command-line interface for managing various aspects of our AirBnB clone project.

Getting Started

To get started, follow these steps:

Run the command interpreter:

./console

If all goes well, you should see the following prompt: (hbtn) Now you're ready to use the console. Refer to the list of available commands below for further instructions.

Command

Commands can also be used in the following format:

Command Description Usage
all Print all instances of a given class all <class_name>
create Create a new instance of a given class create <class_name>
show Print the string representation of an instance show show <class_name> <id>
count Count the number of instances of a class count <class_name>
update Update an instance with new attribute values update update <class name> <id> <attribute name> "<attribute value>"
destroy Delete an instance based on ID destroy <class_name> <id>
quit Quit the console quit

Classes

BaseModel

The BaseModel class serves as the base class for this project and defines attributes for other classes.

Other Classes

These classes inherit from BaseModel:

  • User
  • State
  • City
  • Amenity
  • Place
  • Review

Storage

The FileStorage class is used for saving and loading data from a JSON file, ensuring data persistence. It acts as a bridge between the application's objects and a file.

Testing

Unit tests for this project are defined in the tests folder. You can run the entire test suite by using the following command:

<!-- python3 -m unittest discover tests -->

Alternatively, you can run individual test files:

python3 -m tests/test_models/test_base_model.py

πŸ‘₯ Team

🐣Alexis Billemont : git-alexis

πŸ¦† Cassandre Pernelle : Wefixte

holbertonschool-airbnb_clone's People

Contributors

wefixte avatar git-alexis avatar

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.