This is an experimental client for managing products of an ecommerce entity. It communicates with a custom API built from scratch with plain PHP 7 \w PDO and MySQL. The client was built using Vanilla JavaScript, AJAX and Bootstrap 5.
- Install XAMPP
- Move all files to the
htdocsfolder - Activate/Start
apacheandmysqlservices - Navigate to
localhost/phpmyadmin - Create a database named
ecomm_entity - Run the
main.sqlscript - Navigate to
localhost - Start using the app
You may use the following endpoints using the API key: 6bef8098d5b6f35b8efd79d456303257acd89f05;
- URL:
api/api.php?products=all/ Method:GET/ returnsArraywith all products (can be used for pagination) - URL:
api/api.php?id=3/ Method:GET/ returnsArraywith a single product - URL:
api/api.php?remid=3/ Method:GET/ deletes a product given its id - URL:
api/api.php/ Method:POST/ Required body param:updwith valueupd-prod/ updates a product given some values (note that you need to pass the product id as well!) - URL:
api/api.php/ Method:POST/ Required body param:inpwith valuein-prod/ inserts a new product given a set of values

