A web-based medical inventory management system designed for independent pharmacies and clinics. Streamlines operations by digitizing manual records, enabling real-time stock tracking, expiry monitoring, and report generation.
Ensure you have the following installed on your machine:
- PHP 8.0+ (with php-mysql extension enabled)
- MySQL 5.7+ (or MariaDB)
- Git (optional, for cloning)
Before running the app, you must ensure the code knows your database username and password.
- Open src/install.php.
- Open src/config/db.php.
- Update the $username and $password variables in BOTH files to match your setup.
- Username: root
- Password: (leave empty)
- You usually don't need to change anything unless you set a custom password.
You likely need to create a user, as root is locked down. Run this in your terminal:
sudo mysql -u rootThen runs this SQL:
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password123';
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost';
FLUSH PRIVILEGES;
EXIT;Finally, update your PHP files to use $username = 'admin' and $password = 'password123'.
- Open XAMPP Control Panel.
- Click Start next to MySQL.
- Click Start next to Apache (if using XAMPP to serve files).
- Open your terminal.
- Start the service:
sudo systemctl start mysql
You can serve the project using XAMPP's Apache or PHP's built-in server.
- Copy the entire SatayTech folder.
- Paste it into your XAMPP installation folder:
C:\\xampp\\htdocs\\(or/opt/lampp/htdocs/). - The path should look like:
.../htdocs/SatayTech/src/.
- Open your terminal/command prompt.
- Navigate to the source directory:
cd SatayTech/src/ - Start the server:
php -S localhost:3000
Now you need to run the install.php script to create the database and tables. The URL depends on how you started the server in Step 2.
- If you used XAMPP:
Open browser and visit:
👉 http://localhost/SatayTech/src/install.php - If you used PHP CLI:
Open browser and visit:
👉 http://localhost:3000/install.php
Note: You will see a success message indicating the satay-tech-db has been created.
Once installed, you can access the Public Storefront and Admin Panel.
- Public Store: http://localhost/SatayTech/src/public/
- Admin Panel: http://localhost/SatayTech/src/public/admin/
- Public Store: http://localhost:3000/public/
- Admin Panel: http://localhost:3000/public/admin/
The installer seeds the database with these default accounts:
Administrator (Inventory System):
- Email: admin@sys.com
- Password: Pass123!
Member (Customer System):
- Email: jeremy@gmail.com
- Password: User123!
/SatayTech
└── /src # Root of the application source
├── config/db.php # Database connection file
├── includes/ # Backend logic (Auth, CRUD, Helpers)
├── public/ # Web root (CSS, JS, View Files)
│ ├── admin/ # Admin-specific pages
│ └── assets/ # Images and Styles
├── sql/schema.sql # Database structure definition
└── install.php # Database setup script