This project is an Inventory Tracking System that allows users to upload and track inventory items, including item names and images. Users can log in, add items to their inventory, and view their inventory items on a tracking page.
The purpose of this inventory system is to provide a simple yet effective way for users to manage their inventory items, including uploading images and item names. This system can be useful for small businesses or individuals who need to keep track of their inventory.
- User authentication (login/logout)
- Upload items with names and images
- View inventory items in a list
- Export inventory data to a text file
- XAMPP - A local server environment
- Visual Studio Code - A code editor
- Download XAMPP: Go to the XAMPP download page and download the installer for your operating system.
- Install XAMPP: Run the installer and follow the on-screen instructions to install XAMPP on your computer.
- Start XAMPP: Open the XAMPP Control Panel and start the Apache and MySQL modules.
- Download the project: Clone or download the project repository to your local machine.
- Move the project to XAMPP's
htdocs
directory: Copy the project folder to thehtdocs
directory inside your XAMPP installation directory. For example, on Windows, this might beC:\xampp\htdocs\inventory-system
.
- Create required directories: Ensure the
uploads
anddata
directories exist within the project directory. If they don't exist, create them manually. - Set permissions: Make sure the
uploads
anddata
directories have the appropriate permissions for reading and writing. This is crucial for the PHP script to function correctly.
- Download Visual Studio Code: Go to the Visual Studio Code download page and download the installer for your operating system.
- Install Visual Studio Code: Run the installer and follow the on-screen instructions to install Visual Studio Code on your computer.
- Start the XAMPP server: Open the XAMPP Control Panel and ensure the Apache and MySQL modules are running.
- Access the website: Open your web browser and go to
http://localhost/inventory-system
(or the appropriate path if you named the project folder differently). - Login: Use the login page to log in with your credentials.
- Add items: Use the form on the tracking page to add inventory items, including an item name and image.
- View items: The inventory items will be displayed on the tracking page.
- Export inventory: Use the export button to download your inventory data as a text file.
login.html
: Login page for the users.tracking.html
: Main page to add and view inventory items.upload.php
: PHP script to handle file uploads and data storage.tracking.js
: JavaScript to handle DOM interactions and fetching inventory data.uploads/
: Directory to store uploaded images.data/
: Directory to store inventory data files.
- Error moving uploaded file to target directory: Ensure the
uploads/
directory has the correct permissions for writing files. - Error fetching inventory items: Check the console for detailed error messages and ensure the
data/
directory exists and has the correct permissions.
This project is licensed under the MIT License.
PLEASE CONTACT aliclonsdale@gmail.com FOR USAGE DETAILS!