Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ TechCart


πŸ“– Overview

TechCart is a full-stack e-commerce web application built using PHP, MySQL, Bootstrap 5, HTML5, CSS3, and JavaScript.

The application enables customers to browse electronic products, manage shopping carts, create accounts, place orders, and track their purchases. It also includes a dedicated administrator panel for managing products, customer accounts, and orders.

The project was built as a portfolio application to demonstrate practical full-stack web development concepts including authentication, CRUD operations, relational databases, session management, responsive design, and e-commerce workflows.


✨ Features

πŸ‘€ Customer Features

  • User Registration
  • Secure Login & Logout
  • Password Hashing
  • Profile Management
  • Change Password
  • Browse Products
  • Search Products
  • Filter by Categories
  • Product Details Page
  • Shopping Cart
  • Update Cart Quantity
  • Remove Items from Cart
  • Checkout Process
  • Order Confirmation
  • Order History
  • Order Details
  • Responsive Design

πŸ” Admin Features

  • Secure Admin Login
  • Dashboard
  • Product Management
  • Add Products
  • Edit Products
  • Delete Products
  • User Management
  • Order Management
  • View Customer Orders

πŸ›  Tech Stack

Frontend

  • HTML5
  • CSS3
  • Bootstrap 5
  • Bootstrap Icons
  • JavaScript

Backend

  • PHP

Database

  • MySQL

Development Environment

  • XAMPP
  • phpMyAdmin
  • Visual Studio Code

πŸ“‚ Project Structure

TechCart/
β”‚
β”œβ”€β”€ admin/
β”‚   β”œβ”€β”€ add_product.php
β”‚   β”œβ”€β”€ delete_product.php
β”‚   β”œβ”€β”€ edit_product.php
β”‚   β”œβ”€β”€ index.php
β”‚   β”œβ”€β”€ login.php
β”‚   β”œβ”€β”€ logout.php
β”‚   β”œβ”€β”€ orders.php
β”‚   β”œβ”€β”€ products.php
β”‚   β”œβ”€β”€ users.php
β”‚   └── view_order.php
β”‚
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ css/
β”‚   └── images/
β”‚ 
β”œβ”€β”€ config/
β”‚   └── database.php
β”‚
β”œβ”€β”€ database/
β”‚   └── techcart.sql
β”‚
β”œβ”€β”€ includes/
β”‚   β”œβ”€β”€ header.php
β”‚   β”œβ”€β”€ navbar.php
β”‚   └── footer.php
β”‚
β”œβ”€β”€ about.php
β”œβ”€β”€ add_to_cart.php
β”œβ”€β”€ cart.php
β”œβ”€β”€ categories.php
β”œβ”€β”€ change_password.php
β”œβ”€β”€ checkout.php
β”œβ”€β”€ clear_cart.php
β”œβ”€β”€ contact.php
β”œβ”€β”€ deals.php
β”œβ”€β”€ faqs.php
β”œβ”€β”€ index.php
β”œβ”€β”€ login.php
β”œβ”€β”€ logout.php
β”œβ”€β”€ my_orders.php
β”œβ”€β”€ order_details.php
β”œβ”€β”€ order_success.php
β”œβ”€β”€ place_order.php
β”œβ”€β”€ privacy.php
β”œβ”€β”€ product.php
β”œβ”€β”€ profile.php
β”œβ”€β”€ register.php
β”œβ”€β”€ remove_from_cart.php
β”œβ”€β”€ returns.php
β”œβ”€β”€ shipping.php
β”œβ”€β”€ shop.php
β”œβ”€β”€ test.php
β”œβ”€β”€ update_cart.php
β”œβ”€β”€ update_profile.php
β”‚
β”œβ”€β”€ README.md
└── LICENSE

πŸ“Έ Screenshots

Screenshots will be added soon.

Recommended screenshots:

  • Home Page
  • Shop
  • Product Details
  • Shopping Cart
  • Checkout
  • Profile
  • Order History
  • Order Details
  • Admin Dashboard
  • Product Management
  • User Management

πŸ”„ Application Workflow

Register
      ↓
Login
      ↓
Browse Products
      ↓
View Product Details
      ↓
Add to Cart
      ↓
Checkout
      ↓
Place Order
      ↓
View Order History

βš™ Installation

1. Clone the repository

git clone https://github.com/BenjaminAyivoh1/TechCart.git

2. Move the project

Copy the project folder into:

xampp/htdocs/

3. Start XAMPP

Launch:

  • Apache
  • MySQL

4. Create Database

Create a database named:

techcart

5. Import Database

Import

database/techcart.sql

using phpMyAdmin.


6. Configure Database Connection

Edit:

config/database.php

Example:

<?php

$conn = mysqli_connect(
    "localhost",
    "root",
    "",
    "techcart"
);

if(!$conn){
    die("Connection Failed.");
}

?>

7. Run the Project

Open:

http://localhost/TechCart

πŸ”‘ Admin Access

Administrator Login:

http://localhost/TechCart/admin/login.php

πŸš€ Future Improvements

  • Wishlist
  • Product Reviews
  • Product Ratings
  • Product Image Gallery
  • Email Verification
  • Password Reset
  • Paystack Integration
  • Stripe Integration
  • Order Tracking
  • Sales Analytics
  • Coupons & Discounts
  • Inventory Notifications
  • Product Recommendations
  • Dark Mode

πŸ‘¨β€πŸ’» Author

Benjamin Ayivoh

University of Ghana


🀝 Contributing

Contributions, suggestions, and feedback are welcome.

Feel free to fork the repository and submit a pull request.


πŸ“„ License

This project is licensed under the MIT License.

See the LICENSE file for more details.


⭐ Support

If you enjoyed this project or found it useful, please consider giving it a ⭐ on GitHub.

It helps others discover the project and supports my work.

About

A responsive full-stack e-commerce web application built with PHP, MySQL, Bootstrap 5, HTML, CSS, and JavaScript.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Contributors

Languages