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
see Live Version From Here LiveProject
--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.
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
your Can see above table button u can execute command from it .
$ Follow ME
Developed by Dev Ahmed S. Ahmed coder79 ❤