Giter Site home page Giter Site logo

supermarket's Introduction

Wellcome to the supermarket CLI

enter image description here

enter image description here

Requierement

  • Installing the Lombok IDE Plugin
    • in IntelliJ IDEA

      1. Go to File > Settings > Plugins
      2. Click on Browse repositories...
      3. Search for Lombok Plugin
      4. Click on Install plugin
      5. Restart IntelliJ IDEA
    • in Eclipse check this tutorial


Just use de supermarket CLI

init stock one time

Supermarket:>init

enter image description here

Example : add 5 apples to the basket

Supermarket:>shop -n apple -q 5

enter image description here

Example : create strawberry as product

Supermarket:>create-product -n strawberry -q 60 -p 0.89

Example : give an offer to strawberry

Supermarket:>update-product-offer -n strawberry -f "Buy Five Get Two For Free"

Example : create any type of offer

`Supermarket:>craete-offer -n "Buy Five Get Two For Free" -qb 5 -qf 2`

Show all offers

Supermarket:>offers


All commandes

         Built-In Commands
                 clear: Clear the shell screen.
                 exit, quit: Exit the shell.
                 help: Display help about available commands.
                 history: Display or save the history of previously run commands
                 script: Read and execute commands from a file.
                 stacktrace: Display the full stacktrace of the last error.
         
         Cli Basket Service
                 checkout: checkout all basket
                 shop: shop a product to the current basket ,[ shop -n|--name PRODUCT_NAME -q|--quantity QUANTITY ]
         
         Cli Create Service
                 create-offer: Create an offer,[ create-offer -n||--name OFFER_NAME  -qb QUANTITY_TO_BUY  -qf QUANTITY_FOR_FREE ]
                 create-product: Create a product,[ create-product -n||--name PRODUCT_NAME -q||--quantity QUANTITY  -p||--price PRICE ]
         
         Cli Printer Service
                 basket: show current basket
                 message: show a message to screen ,[ message -m|--message MESSAGE_TEXT ]
                 offers: show current offers
                 stock: show current stock
         
         Cli Stock Service
                 init: init stock (one shot option)
         
         Cli Update Service
                 update-offer: Update the offer for a given product,[ update-offer -n||--name OFFER_NAME -qb QUANTITY_TO_BUY  -qf QUANTITY_FOR_FREE  , use quote fo long name ]
                 update-product-offer: Update the offer for a given product,[ update-product-offer -n||--name PRODUCT_NAME -f||--offer OFFER_NAME , use quote fo long name ]
                 update-product-price: Update the price for a given product,[ update-product-price -n||--name PRODUCT_NAME -p||--price PRICE ]
                 update-product-stock: Update a stock for a given product,[ update-product-stock -n||--name PRODUCT_NAME -q||--quantity QUANTITY ]

supermarket's People

Contributors

aboushaheed avatar dependabot[bot] avatar souidi03 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.