Skip to content

Latest commit

Β 

History

History
76 lines (50 loc) Β· 1.98 KB

File metadata and controls

76 lines (50 loc) Β· 1.98 KB

πŸ“ Document Matcher - PHP Frontend

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.


🧠 Features

  • 🧾 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

πŸ“¦ Folder Structure

/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


βš™οΈ Setup Instructions

πŸ”Œ 1. Local Setup (XAMPP)


πŸ” 2. Connect with Node.js API

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';


🌐 Live Demo (Optional)


πŸ‘¨β€πŸ’» Credits

Built with ❀️ for Hackathon 2025
By Team zerotop πŸ”


πŸ“„ License

MIT License – free to use, modify, and share.