Git Product home page Git Product logo

airbnb_clone's Introduction

PROJECT DESCRIPTION

This is a full web application which we will be building by the use of other tools such as HTML/CSS templating, database storage, API, front-end integration etc…. This project is based some tasks which are linked to the directory of the project using another online platform called GitHub.

Each Task will help us to:

- put in place a parent class (called BaseModel) to take care of the 	initialization, serialization and deserialization of your future instances

- Create a simple flow of serialization/deserialization: Instance <-> 	Dictionary <-> JSON string <-> file

- Create all classes used for AirBnB (User, State, City, Place…) that inherit 	from BaseModel.

- Create the first abstracted storage engine of the project: File storage.

- Create all unittests to validate all our classes and storage engine

COMMAND INTERPRETER DESCRIPTION

  • This is a command-line interface (CLI) program designed to provide a simple interpreter for executing a set of predefined commands. The program is written in Python and allows the user to interact with it through the command-line interface.

  • The command interpreter is a simple CLI program that accepts user input in the form of commands and executes them. The program provides a set of predefined commands that allow the user to perform various operations.

HOW TO START THE PROGRAM

  • To start the program, you will need to have Python installed on your system. Once you have installed Python, follow these steps:

    • Clone the repository or download the source code
    • Open the terminal or command prompt
    • Navigate to the directory where the program is located
    • Run the following command to start the program: (python main.py)

HOW TO USE THE PROGRAM

  • The program accepts user input in the form of commands. To execute a command, simply type it into the command line and press enter. The program will then execute the command and provide any output that may be required.

The following commands are currently supported by the program:

help: displays a list of available commands and their descriptions create : creates a new file with the specified name delete : deletes the specified file rename <new_filename>: renames the specified file to the new name read : displays the contents of the specified file write : writes the specified content to the specified file

EXAMPLES

  • To create a new file named example.txt, enter the following command: (create example.txt)

  • To delete a file named example.txt, enter the following command: (delete example.txt)

  • To rename a file named example.txt to new_example.txt, enter the following command: (rename example.txt new_example.txt)

  • To read the contents of a file named example.txt, enter the following command: (read example.txt)

  • To write some content to a file named example.txt, enter the following command: (write example.txt "Hello, world!")

Authors ✒️

airbnb_clone's People

Contributors

vicktrk avatar

Watchers

 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.