This repository contains the source code for an Admin Dashboard for managing an online quiz website. The dashboard includes features for login, registration, category management, question management, and more.
- Login Page: Secure login for admins.
- Register Page: Register new admin users.
- Dashboard: Main interface for admin operations.
- Category Management: Add, edit, update, and delete quiz categories.
- Question Management: Add, edit, update, and delete quiz questions.
- View Categories: Show all categories.
- View Questions: Show all questions.
- Additional Features: Other functionalities required for managing an online quiz.
- XAMPP: A local server environment to run PHP and MySQL.
-
Download and Install XAMPP
- Download XAMPP and follow the installation instructions for your operating system.
-
Download the Project
- Clone or download this repository from GitHub:
https://github.com/hashirmeraj/admin-dashboard
.
- Clone or download this repository from GitHub:
-
Set Up the Database
- Open XAMPP and start the Apache and MySQL services.
- Open phpMyAdmin by navigating to
http://localhost/phpmyadmin/
in your web browser. - Create a new database named
admin_dashboard
. - Import the SQL file:
- Go to the
admin_dashboard
database in phpMyAdmin. - Click on the
Import
tab. - Choose the file
/database/admin-dashboard.sql
from the project directory. - Click
Go
to import the database.
- Go to the
-
Configure the Project
- Open the file
./particles/config.php
in a text editor. - Update the database configuration settings to match your local environment:
<?php // Database configuration $servername = 'localhost; // Server name, including port if not the default (3306) $username = 'root'; // MySQL username $password = ''; // MySQL password (empty if not set) $dbname = 'admin_dashboard'; // Name of the database to connect to ?>
- Open the file
-
Run the Project
- Move the project folder to the
htdocs
directory of your XAMPP installation (e.g.,C:\xampp\htdocs\admin-dashboard
). - Open your web browser and navigate to
http://localhost/admin-dashboard/
.
- Move the project folder to the
-
Access the Dashboard
- Use the login page to access the admin dashboard with your admin credentials.
- Login Page: Access the admin dashboard.
- Register Page: Register a new admin user.
- Dashboard: Manage quiz categories and questions.
- Category Management: Add, edit, update, and delete categories.
- Question Management: Add, edit, update, and delete questions.
- View Categories and Questions: View lists of all categories and questions.
If you’d like to contribute to this project, please fork the repository and submit a pull request with your changes.