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.
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.
You can view a live demo of the application here: SwiftStock Demo
Defult User Account,
User Name :- user
Password :- User@123
SwiftStock offers a rich set of features designed to make inventory management simple and efficient:
Before setting up the SwiftStock application, ensure your environment meets the following requirements:
Follow these steps to install the SwiftStock application on your local or server environment:
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
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.
Create the Database: Using MySQL or a tool like phpMyAdmin, create a new database named swiftstock
.
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.
Before running the application, update the database configuration to match your environment:
Locate the Database Configuration File: The file responsible for database connections is named DBconnection.php
. You can find it in the root directory.
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
Save the Changes: Ensure the changes are saved before proceeding to run the application.
To start using the SwiftStock application:
Start Apache and MySQL: Ensure both Apache and MySQL services are running on your server.
Deploy the Project: Place the project directory in the Apache server root or configure a virtual host to point to the project directory.
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.
Default users:
user
User@001
The project follows a structured organization of files and directories:
index.php
: The landing page of the application where users are greeted.Components/
: Contains reusable components such as headers and footers.Components/navigation/
: Houses the navigation links and menus used throughout the application.images/
: Contains all the images used in the application, such as logos and icons.After setting up and running the application, users can perform the following tasks:
register.php
page.login.php
page.manage_inventory.php
page to add new items to the inventory.search.php
page to search for items in the inventory.createReport.php
to generate comprehensive reports on the current inventory status.Here are common issues and their solutions:
DBconnection.php
are correct and that the database exists.display_errors
to On
in your php.ini
file. Review the error messages to identify and fix issues in the code.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