📦
MHT Inventory & Ledger MySQL REST API
Next.js App Router API with MySQL connection pooling, CORS enabled, and Hostinger ready.
MySQL Disconnected
📝 Enter Data (Form)🗄️ Active MySQL Connection
Host:127.0.0.1Port:3306Database:inventory_dbMySQL Version:Detecting...
🚀 Hostinger Webhost Deployment
1. Import database.sql in Hostinger phpMyAdmin.
2. In Hostinger Node.js manager, set root folder to api.
3. Set environment variables from .env.example (DB_HOST, DB_USER, etc.).
API Endpoints
15 routesGET
Database Health Check
Ping MySQL database and check connection pool status
http://your-domain
Response
// Click "Send Request" to test this endpoint against your MySQL database