Hashan-Samarakkody / SwiftStock-Inventory_Management_System

This repository contains the code for a web-based Inventory Management System developed for the final project in Web Applications Development I. The application is built using PHP and MySQL, designed to help users efficiently manage their inventory items through a comprehensive set of features.
MIT License
4 stars 1 forks source link
css3 hosting html5 javascript php sql

SwiftStock - Inventory Management System

Welcome to SwiftStock, a robust and scalable Inventory Management System developed as the final project for the Web Applications Development I course. This repository contains the complete source code for a web-based application built using PHP and MySQL, designed to help users efficiently manage their inventory items through a comprehensive set of features.

Table of Contents

  1. Introduction
  2. Features
  3. Prerequisites
  4. Installation
  5. Configuration
  6. Running the Application
  7. Folder Structure
  8. Usage
  9. Troubleshooting
  10. Credits

1. Introduction

SwiftStock is an advanced Inventory Management System tailored to streamline the process of tracking, managing, and reporting inventory items. The system is designed with a user-friendly interface and a powerful backend to handle inventory management tasks efficiently. The application is ideal for businesses of all sizes, allowing users to maintain an organized and up-to-date inventory.

Sample Demo Link

You can view a live demo of the application here: SwiftStock Demo

Defult User Account, User Name :- user Password :- User@123

2. Features

SwiftStock offers a rich set of features designed to make inventory management simple and efficient:

Manage Inventory

Search Inventory

Generate and Display Reports

Visualize Inventory Data

User Registration and Management

3. Prerequisites

Before setting up the SwiftStock application, ensure your environment meets the following requirements:

  1. PHP 7.4+: The application is built using PHP, and a version of 7.4 or higher is required.
  2. MySQL 5.7+: A MySQL database is necessary to store the application's data.
  3. Apache Web Server: The application is designed to run on an Apache web server.
  4. Web Browser: Ensure your web browser is JavaScript-enabled for full functionality.

4. Installation

Follow these steps to install the SwiftStock application on your local or server environment:

  1. Clone the Repository: Use Git to clone the repository to your local machine. Run the following command in your terminal, replacing YOUR-USERNAME with your GitHub username:

    git clone https://github.com/YOUR-USERNAME/SwiftStock-Inveventory_Management_System.git
  2. Move the Project Folder: After cloning, move the root folder of the project to the deployment directory of your web server. For Apache, this is typically the htdocs folder.

  3. Create the Database: Using MySQL or a tool like phpMyAdmin, create a new database named swiftstock.

  4. Import the Database Schema: Import the SwiftStock.sql file located in the project repository into your newly created swiftstock database. This file contains all the necessary SQL queries to set up the database structure and initial data.

5. Configuration

Before running the application, update the database configuration to match your environment:

  1. Locate the Database Configuration File: The file responsible for database connections is named DBconnection.php. You can find it in the root directory.

  2. Update the Configuration: Open the DBconnection.php file and replace the placeholders with your actual database credentials:

    // Hostname
    define('DB_HOST', 'YOUR-HOST-NAME'); // <-- Enter your hostname, usually 'localhost'
    
    // DB user
    define('DB_USER', 'YOUR-USERNAME'); // <-- Enter your MySQL username
    
    // DB password
    define('DB_PASSWORD', 'YOUR-PASSWORD'); // <-- Enter your MySQL password
    
    // Database name
    define('DB_NAME', 'swiftstock'); // <-- Enter the name of your database
  3. Save the Changes: Ensure the changes are saved before proceeding to run the application.

6. Running the Application

To start using the SwiftStock application:

  1. Start Apache and MySQL: Ensure both Apache and MySQL services are running on your server.

  2. Deploy the Project: Place the project directory in the Apache server root or configure a virtual host to point to the project directory.

  3. Access the Application: If you are using Apache server, open your web browser at http://localhost/SwiftStock-Inveventory_Management_System/Project/. Or, if you are using a virtual host, configure it to point to the project directory.

  4. Default users:

    • User name :- user
    • Password :- User@001

7. Folder Structure

The project follows a structured organization of files and directories:

8. Usage

After setting up and running the application, users can perform the following tasks:

User Authentication

Inventory Management

Search Inventory

Reports

9. Troubleshooting

Here are common issues and their solutions:

Database Connection Issues

Application Errors

10. Credits

SwiftStock was developed by Group 8 as the final project for the Web Applications Development - I course. The team members contributed to various aspects of the project, including front-end design, back-end development, database management, and testing.

Team Members: Group 8