This is a shopping cart application built using PHP, Vanilla JavaScript, and Bootstrap 5. It allows users to browse and add products to a shopping cart, and view the total cost of the items in the cart.
To run the application, you will need to have PHP 8 installed on your machine. You will also need a web server like Apache or Nginx to serve the application.
- Clone this repository to your local machine:
git clone https://github.com//PHP-VanillaJS-Bootstrap-Shopping-Cart.git
- Navigate to the project directory:
cd PHP-VanillaJS-Bootstrap-Shopping-Cart
- Install dependencies:
composer install
- Start the web server:
php -S localhost:8000 -t public
- Open your web browser and go to
http://localhost:8000
to view the application.
On the homepage, you will see a list of products available for purchase. You can click on a product to view its details, including a larger image, description, and price.
To add a product to your cart, simply click the "Add to Cart" button on the product detail page. You will be taken to the cart page, where you can view the items in your cart and their total cost.
If you no longer want an item in your cart, you can click the "Remove" button next to the item in the cart page.
Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request.
This application is open-source software licensed under the MIT license.