Laravel Shopping Cart is a full stack implementation of a web-based shopping cart in Laravel/PHP.
- Laravel
- PHP/Composer
- Bootstrap 4.6.2 (JQuery)
- HTML/CSS, JavaScript
- MySQL
- XAMPP
- Git
-
Product Management
- List products in database
- Include product name, description, price, image
- Add, edit, delete products from database
-
Shopping Cart
- Browse full list of products
- Add, edit, remove products from cart
- Update product quantity
-
Checkout
- Session based
- Create order and empty cart
- View past orders
- Individual product pages
- Edit product (front-end)
- Collect shipping information at checkout
- View past orders (multiple)
To run a full stack project, you need both front-end and back-end applications, and a database to store your data.
To run a local copy of my project, follow these steps.
Download and install the following:
-
Run cmd or terminal, confirm Composer and NPM is installed
composer
npm -v
-
Create a new Laravel project, follow installer setup
Select PHPUnit as your framework, MySQL as your database
laravel new Ecommerce
-
Open project folder in IDE
Locate .env file, rename db_database
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laraveldb DB_USERNAME=root DB_PASSWORD=
-
Download database: laraveldb.sql
-
Open XAMPP Control Panel, start Apache and MySQL servers
-
Confirm MySQL is running
http://localhost/phpmyadmin/
-
Go to Import tab, import laraveldb.sql database
-
Clone this repo
git clone https://github.com/m-bien/CSC-471-Laravel-Shopping-Cart.git
-
Copy paste cloned files into your project folder
-
Start server
php artisan serve
-
View project in browser
http://localhost:8000
-
Done! Use ChatGPT for troubleshooting