-
Notifications
You must be signed in to change notification settings - Fork 16
Middleware Service
Backend Information (Needs to be rewritten account for Node)
One thing that you will have to run every time you want to create a match in the development environment is the pairUp.php file. You can do this by going to http://localhost:8000/pairUp.php.
Our program uses the JWT firebase authentication library for JWT authentication and uses the mongodb driver for communication with the mongodb server.
delete.php (Parameters: jwt)
Delete a user from the database given their jwt.
endMeeting.php (Parameters: jwt)
Ends the meeting of a student and a mentor.
endSearch.php (Parameters: jwt)
Ends the search for a meeting of a student or mentor.
getInfo.php (Parameters: jwt)
Gets info about a parent's children.
index.php (Parameters: username, password, firstName, lastName, reason, email, students,parentUsername, role )
Read comments in file for more detailed information, however mainly it creates and verifies users.
isInMeeting.php (Parameters: jwt)
Checks to see if a student or mentor is currently in a meeting.
newGame.php (Parameters: jwt)
Add a mentor or student to the corresponding waiting list.
pairUp.php (No Parameters)
Make all possible matches of students and mentors and create meetings for them.
verify.php (Parameters: jwt)
Verify the validity of the jwt. This checks to ensure that it has not been tampered with.
verifyNoEcho.php (Parameters: jwt)
Verify the validity of the jwt. Instead of echoing out the status, returns it.