Skip to content

Write a program that can price a cart of products from different countries, accept multiple products, combine offers, and display a total detailed invoice in USD as well.

Notifications You must be signed in to change notification settings

yahongie2014/Takehome

Repository files navigation

alt tag

Cart Challenge

Software License

Install

You can install BE take-home coding challenge From Start Your Base Url / Install:

Ex: http://localhost/Takehome/install/

Or Excute Command

> php -S 127.0.0.1:5000

After Installation Must Be Redirect To index.php Root Folder to see Records once u install in first time in config/condif.php define INSTALLED will be 1

OR

see Live Version From Here LiveProject

Specs and Project roots

--TakeHome
   ----Commands
      ---createCartCommand.php
      ---createProductCommand.php
   ----config
     ---config.php
     ---db.php
   ----Includes
     ---FactoryDB.php
     ---helper.php
   ----install
     ---index.php
   ----themes
   ----vendor
   --.htaccess
   --coder
   --cart.sql
   --composer.json
   ---composer.lock
   ---composer.phar
   ---index.php
   --Relations Schema.png

My Guideline in My Project To Create Task

- Require Composer lib To Create Command Line
    "php": "^7.3|^8.0",
    "symfony/console": "2.6.7",
    "ext-pdo": "*"
- Create Install Schema To Migrate DB queries with relations from cart.sql !important
- Connect To Mysql DB With PDO Functions,
- Define config db connect and flag installed 0 first time.
- add Bootstrab css & js to display table record for carts.
- add #!/usr/bin/env php  called coder in my project to start command.

My Schema DB alt tag

Run & GO

actually i add 2 command in my task u can see in coder file

$application->add(new createCartCommand());

$application->add(new  createProductCommand());

to see helper command excute this command 
> php coder

to run command to create product :
> php coder createProduct Iphone --price="100" --rate="3" --weight="2.39"
and all fields required *
to run command create product cart :
> php coder createCart  --product="Blouse","T-shirt","Pants","Sweatpants","Jacket","Shoes"
and must be spreated by ',' to multible product

OR


your Can see above table button u can execute command from it .

RefTask

#License By:

$ Follow ME

Developed by Dev Ahmed S. Ahmed coder79

About

Write a program that can price a cart of products from different countries, accept multiple products, combine offers, and display a total detailed invoice in USD as well.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published