Skip to content

Web-based application designed to manage supermarket operations, including user authentication, inventory management, order processing, and sales tracking. Built with PHP and MySQL, it offers a user-friendly interface and robust functionality for efficient supermarket management.

License

Notifications You must be signed in to change notification settings

datpham0412/grocery-hub-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛒 GroceryHubManagementSystem

License: MIT

📋 Project Description

The SuperMarketApp is a web-based application designed to manage supermarket operations such as user authentication, inventory management, order processing, and sales tracking. It is built using PHP and MySQL, providing a robust and scalable solution for small to medium-sized supermarkets.

🛠 Technologies Used

  • PHP: Server-side scripting.
  • MySQL: Database management.
  • HTML/CSS: Front-end structure and styling.
  • JavaScript: Client-side scripting.
  • jQuery: JavaScript library for simplified scripting.

📚 Features

  • User authentication and session management.
  • Inventory management for products.
  • Order processing and tracking.
  • Sales records and reporting.
  • User-friendly interface with responsive design.

🚀 Installation and Running the Project

Prerequisites

  • Install XAMPP for an easy Apache distribution containing MySQL, PHP, and Perl.

Steps

  1. Install XAMPP:

    • Download and install XAMPP from the official website.
    • During installation, choose the components you need (make sure Apache and MySQL are selected).
  2. Change Ports for Apache (if necessary):

    • If Apache cannot start, it may be due to port conflicts.
    • Open XAMPP Control Panel, click Config next to Apache, and open httpd.conf.
    • Change the Listen port from 80 to 8080:
      Listen 8080
      
    • Open httpd-ssl.conf and change the Listen port from 443 to 8443:
      Listen 8443
      
  3. Clone the Repository:

    git clone https://github.com/datpham0412/SuperMarketApp.git
    cd SuperMarketApp
  4. Move Project to XAMPP htdocs:

    • Move the SuperMarketApp folder to the C:\xampp\htdocs directory.
  5. Import Database into phpMyAdmin:

    • Start Apache and MySQL from the XAMPP Control Panel.
    • Open your web browser and go to http://localhost/phpmyadmin.
    • Create a new database named market_database.
    • Import the database.sql file into the market_database.
  6. Configure Database Connection:

    • Ensure the database connection settings in db_connection.php are correct:
      <?php 
      function openConnection() {
          $servername = "localhost";
          $username = "root";
          $password = "";
          $dbname = "market_database";
      
          $connection = new mysqli($servername, $username, $password, $dbname);
      
          if ($connection->connect_error) {
              die("Connection failed: " . $connection->connect_error);
          }
      
          return $connection;
      }
      
      function closeConnection($connection) {
          $connection->close();
      }
      ?>
  7. Launch the Application:

    • Open your web browser and navigate to http://localhost:8080/SuperMarketApp/login.php.

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

📞 Contact

For any inquiries, please contact tiendat041202@gmail.com.


Made with ❤️ by Dat Pham

About

Web-based application designed to manage supermarket operations, including user authentication, inventory management, order processing, and sales tracking. Built with PHP and MySQL, it offers a user-friendly interface and robust functionality for efficient supermarket management.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published