This is the frontend and user dashboard for the Smart Document Matcher system. Built with PHP + MySQL, it handles user registration, login, credit management, and integration with the Node.js API for document matching.
- π§Ύ User registration & login
- π€ Upload documents for similarity check
- βοΈ Calls backend Node.js API for NLP-based matching
- πͺ Credit system (1 match = 1 credit)
- π οΈ Admin panel to manage users & credits
- π Uploads stored securely on the server
/hackathon
βββ index.php β Home page
βββ register.php β User signup
βββ login.php β Login page
βββ dashboard.php β User dashboard
βββ match.php β Match trigger via curl
βββ logout.php
βββ profile.php
βββ db.php β MySQL connection
βββ /uploads β Uploaded files (auto-created)
βββ /admin β Admin panel
βββ /sql β SQL setup files
-
Clone this repo into
htdocs/: git clone https://github.com/YOUR_USERNAME/document-matcher-php.git -
Import the database:
- Open
phpMyAdmin - Import the SQL from
/sql/create_tables.sql
- Open
-
Update
db.php: $conn = new mysqli('localhost', 'root', '', 'your_database_name');
Make sure you have the matching Node.js backend running at a public URL (e.g. Render.com).
In match.php, update this line:
$apiURL = 'https://your-api-url.onrender.com/api/match';
- π Frontend: https://your-username.000webhostapp.com
- π API: https://your-api-url.onrender.com
Built with β€οΈ for Hackathon 2025
By Team zerotop π
MIT License β free to use, modify, and share.