This PHP-based web application, developed for Scandiweb Junior Developer Test Task, provides functionality for managing products. It includes a product list with the ability to perform multiple deletions and an Add Product page.
- View a list of products
- Perform multiple deletions of selected products
- Add new products with details like sku, name, price, and product attributes
- HTML
- CSS
- JavaScript
- PHP
- MySQL
-
Clone the repository:
git clone https://github.com/Fatma-Tawfeek/scandiweb-test-task.git
-
Set up the database:
- Create a MySQL database.
- Import the
database.sql
file to create the necessary table.
mysql -u your-username -p your-database-name < database.sql
-
Configure database connection:
- Open
config.php
. - Update the database credentials with your own.
- Open
-
Start the PHP development server:
php -S localhost:8000 -t public
-
Open your browser and navigate to http://localhost:8000.
- Visit the Products List page at http://localhost:8000/ to view and manage existing products.
- Navigate to http://localhost:8000/add-product.php to add a new product.