Skip to content

aymud/CPSC471-DatabaseProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

135 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daycare Management System

CPSC 471 project for the Data Base Management Systems course at the University of Calgary

Overview

  • This API was designed for a real-life problem for which a database application was appropriate
  • This was created using PHP and a MySQL database system
  • For a list of available endpoints, their methods, parameters, and other details, view the API documentation
  • Refer to FileStructure.txt for a quick overview of the project folder structure
  • See the final report for a complete overview of the project

Download and Install

  • A web server
  • MySQL database
  • PHP
  • API testing tool

Quick Set Up

  1. Download and place the project file inside the web folder (www) of the web server
  2. Navigate to http://localhost/phpmyadmin/ and login
  3. Change password to root
  4. Navigate to http://localhost/CPSC471-DatabaseProject/config/Install.php to setup the database and tables
  5. Use the API testing tool to send API requests

API Authentication

  • The API endpoints are protected with Basic Auth
  • Each endpoint requires a valid username and password to make the request
  • Refer to the API documentation for the clearance level required for each endpoint
  • The valid accounts are:
    • Username: high, Password: high, Clearance Level: high
    • Username: med, Password: med, Clearance Level: medium
    • Username: low, Password: low, Clearance Level: low

Changing The Database Configuration

  • Install.php runs a SQL script to create the database, tables and the stored procedures
  • The name of the database created with the script is called childDaycare
  • The configuration assumes that the username and password to phpMyAdmin is root
  • This configuration can be changed to your own preference by following these steps:
    1. Open Database.php to change servername, username, or password
    2. To change the database name, open database.sql and change childDaycare in lines 1, 3 and 5
  • Once those changes are made, navigate to http://localhost/CPSC471-DatabaseProject/config/Install.php
  • Use the API testing tool to send API requests

About

This repository is for Team 3's group project for the Data Base Management Systems course at the University of Calgary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages