Skip to content

I am creating this repository to improve my skills in PHP and Javascript by applying Clean Code and SOLID principles.

Notifications You must be signed in to change notification settings

joicepassos/PHP-VanillaJS-Bootstrap-Shopping-Cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-VanillaJS-Bootstrap-Shopping-Cart

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.

Installation

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.

  1. Clone this repository to your local machine:

git clone https://github.com//PHP-VanillaJS-Bootstrap-Shopping-Cart.git

  1. Navigate to the project directory:

cd PHP-VanillaJS-Bootstrap-Shopping-Cart

  1. Install dependencies:

composer install

  1. Start the web server:

php -S localhost:8000 -t public

  1. Open your web browser and go to http://localhost:8000 to view the application.

Usage

Browse Products

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.

Add to Cart

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.

Remove from Cart

If you no longer want an item in your cart, you can click the "Remove" button next to the item in the cart page.

Contributing

Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request.

License

This application is open-source software licensed under the MIT license.

About

I am creating this repository to improve my skills in PHP and Javascript by applying Clean Code and SOLID principles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published