🚀 School Inventory System - Deployment Guide
📋 Server Requirements Check
- PHP Version: ✅ PHP 7.4.33
- MySQL: ✅ MySQL Available
- File Uploads: ✅ Enabled
- Max File Size: ✅ 10M max
- Memory Limit: ✅ 128M available
🗄️ Database Setup
SQL Commands to run in phpMyAdmin:
📁 Required Files
Upload these files to your hosting's public_html or www directory:
- index.html - Main application
- styles.css - Styling
- script.js - JavaScript functionality
- database.php - Database functions
- api.php - API endpoints
- setup_database.php - Database setup (run once)
- debug_api.php - API testing
- sample.html - Sample data guide
- README.md - Documentation
⚙️ Configuration Updates
Update database.php with your hosting credentials:
$servername = "localhost";
$username = "YOUR_DB_USERNAME";
$password = "YOUR_DB_PASSWORD";
$dbname = "YOUR_DB_NAME";
🚀 Deployment Steps
- Upload all files to hosting directory
- Create MySQL database in hosting control panel
- Update database.php with correct credentials
- Run setup_database.php in browser
- Test application at your domain
- Remove debug_api.php for production
🌐 Recommended Hosting
Hostinger
PHP/MySQL hosting from $1.99/month
Visit000webhost
Free PHP hosting with MySQL
VisitNiagahoster
Indonesian hosting provider
Visit✅ Production Checklist
Security
- Update database credentials
- Remove debug files
- Set proper file permissions
- Enable HTTPS
Performance
- Optimize images
- Minify CSS/JS
- Enable caching
- Database indexing
Deployment Guide - School Inventory System