This web app is built using PHP and runs on an Apache web server.
- Install PHP and Apache.
- Ensure that the
C:\Apache24\conf\httpd.conf
file has been configured for using PHP (add the following lines):
# Execute PHP files
PHPIniDir "C:\php"
AddHandler application/x-httpd-php .php
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
LoadModule php_module "C:\php\php8apache2_4.dll"
- In
php.ini
(C:\php\php.ini
on Windows), ensure that the PHP extension folder is set correctly (e.g.extension_dir = "C:/php/ext/"
) and that the 'mysqli' and 'pdo_mysql' PHP extensions are enabled by deleting the ";
" on front of each line, if there is one. - Clone this repository directly into your Apache web server's root directory (
C:\Apache24\htdocs\
on Windows) and name the folderCP476
. - You will need to create a file called
private.php
directly in the[...]\CP476\
directory. This file should contain the following code:
<?php
# MySQL Database Connection
CONST HOST = 'your_host'; # ex.'localhost'
CONST USERNAME = 'your_mysql_username'; # ex.'root'
CONST PASSWORD = 'your_mysql_password'; # or null if your mysql does not use a password
CONST DB_NAME = 'your_db_name'; # ex.'my_grading_app'
?>
- Start the Apache server and navigate to localhost/CP476/index.php in your web browser.
- You're all set! :)
The database is initialized automatically when you first run the app.
All default database values are stored in [...]\CP476\src\db\defaults\
.
- Navigate to various pages by selecting either
Names
,Courses
, orGrades
from the navigation bar. - Each page displays a table of information pulled from the database.
- The
Names
andCourses
pages allow you to edit details for a row and pressSave Changes
to update the record in the database.
This project is licensed under the GNU General Public License - see the LICENSE file for details.