- Download and install XAMPP from here
- Start Apache and MySQL module (You may need to install their respective services)
- Go to http://localhost/phpmyadmin/ on your browser
- Create a database using root account and name it
toylib
with collationutf8_general_ci
and DB typeInnoDB
- Then go to Import tab, and import
Documentation/DB Files/toylib FINAL.sql
- Go to Loaned table, click
Structure -> Relation View
. - Set loaned.ToyID to relate to toys.ToyID. Also set loaned.CustomerID to relate to members.CustomerID
- Go to Toys table, click Structure. Go to the Indexes dropdown Index “Toy (10)” and “Category (5)”
- Click on User accounts and at the bottom, the console and execute the query at:
Documentation -> DB Files -> users and privileges.txt
- Based on the above setup, your database account should now have the passwords at:
Documentation -> DB Files -> users pass toylib.txt
- Open directory
XAMPP -> apache -> conf -> httpd.conf
- Look for line "Options Indexes FollowSymLinks Includes ExecCGI" (w/o quotes). Delete word "Indexes"
- Open directory
XAMPP -> php -> php.ini
- Look for line "extension=php_openssl.dll" (w/o quotes). Make sure it has no semicolon before the line. If it has, delete it
- Open directory
XAMPP -> htdocs
and make a new folder calledtoylib
(You may change the name, if you want) - Clone this repository to that
toylib
folder. You may exclude the Documentation folder as you wish
You can now view the site my going to http://localhost/toylib/ in your browser. Make sure that the Apache and MySQL modules are started before you do this
Please click here for more information about this project