Skip to content

This is the first step towards building my first full web application: the AirBnB clone. This first step is very important because i will use what i build during this project with all other following projects: HTML/CSS templating, database storage, API, front-end integration...

Notifications You must be signed in to change notification settings

fabeklou/AirBnB_clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AirBnB_clone

Description of the project

This is the first step towards building my first full web application: the AirBnB clone. This first step is very important because i will use what i build during this project with all other following projects: HTML/CSS templating, database storage, API, front-end integration...

Part 1 : The console

In this first part, the console (which is simillar to a sandbox usually used for testing new feature and troubleshooting) was implemented.

This givs us the ability to perfom CRUD operations by entring pre defined commands.

It indefinitely displays a prompt asking the user to enter a command. The command is then read, analyzed and executed using the Cmd class (which works miracles) and the set of predefined methods that accompany it.

Most of them were overwritten in our user defined class which inherit from the Cmd class.

More simply, we will be able to :

  • create new objects
  • retrieve an object from the database (file storage)
  • perform some operations on the objects
  • update attributes of an object
  • destroy/delete an object

Using the following commands :

  • show
  • create
  • update
  • destroy
  • count

To make the use of the console more user-friendly, other commands are also available :

  • help
  • exit

How to get the console on your local machine ?

What you need

  • git
  • python3
  • ...

How to run/start it ?

How to use it ?

a few examples

Testing

Authors

Fabrice Eklou | twitter : fabeklou linkedin : Fabrice Eklou

About

This is the first step towards building my first full web application: the AirBnB clone. This first step is very important because i will use what i build during this project with all other following projects: HTML/CSS templating, database storage, API, front-end integration...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published