Skip to content

m-bien/CSC-471-Laravel-Shopping-Cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About The Project

Video Demo

Laravel Shopping Cart Demo

Laravel Shopping Cart is a full stack implementation of a web-based shopping cart in Laravel/PHP.

Built With

  • Laravel
  • PHP/Composer
  • Bootstrap 4.6.2 (JQuery)
  • HTML/CSS, JavaScript
  • MySQL
  • XAMPP
  • Git

Features

  • 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

Missing Features

  • Individual product pages
  • Edit product (front-end)
  • Collect shipping information at checkout
  • View past orders (multiple)

Getting Started

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.

Prerequisites

Download and install the following:

Installation

Laravel's Installation Guide

  1. Run cmd or terminal, confirm Composer and NPM is installed

      composer
      npm -v
  2. Create a new Laravel project, follow installer setup

    Select PHPUnit as your framework, MySQL as your database

      laravel new Ecommerce
  3. 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=
    
  4. Download database: laraveldb.sql

  5. Open XAMPP Control Panel, start Apache and MySQL servers

  6. Confirm MySQL is running

      http://localhost/phpmyadmin/
    
  7. Go to Import tab, import laraveldb.sql database

  8. Clone this repo

      git clone https://github.com/m-bien/CSC-471-Laravel-Shopping-Cart.git
    
  9. Copy paste cloned files into your project folder

  10. Start server

      php artisan serve
    
  11. View project in browser

      http://localhost:8000    
    
  12. Done! Use ChatGPT for troubleshooting

About

Look at my full stack project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published