A simple administrative dashboard portal designed to manage Pag-IBIG member records, including personal information, contact details, employment history, government IDs, and beneficiary records.
Before running this project locally, make sure you have the following installed:
- Node.js (includes npm)
- MySQL Server
- Git
Clone the repository using your terminal:
git clone https://github.com/Juliana-Eunice/Pag-ibig_DatabaseProject.git
cd Pag-ibig_DatabaseProjectOpen MySQL Workbench or your preferred MySQL client and create the database:
CREATE DATABASE im_project;Make sure the required tables are created according to the database schema:
MemberContactEmploymentPrevEmploymentHeirGovernmentIDEmployer
Note: It's better to import our CSVs directly to have the exact same attributes, data types, and sample data.
Create a file named .env in the root directory of the project.
Add your MySQL database credentials:
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=YOUR_MYSQL_PASSWORD
DB_NAME=im_projectReplace YOUR_MYSQL_PASSWORD with your actual MySQL password.
Install all required Node.js packages:
npm installRun the server using:
node server.jsIf successful, the terminal should display:
🚀 Administrative server tracking on port 3000.
The backend is now connected to the MySQL database.
Open the login.html file in your browser.
You may also use Live Server in Visual Studio Code:
- Right-click
login.html - Select Open with Live Server
The admin portal will now be accessible.
Use the following default testing credentials:
Username
admin
Password
grp3db.IM
- HTML
- CSS
- JavaScript
- Node.js
- MySQL Workbench
- Ensure MySQL is running before starting the server.
- Keep your
.envfile private and do not upload it to GitHub. - Database tables must exist before running the application.