Turtledo is an android
app that enables a student to register for a course at the University of Maryland
.
On windows navigate to your home directory.
cd %HOMEPATH%
Create the .ssh
folder if it does not exists.
mkdir .ssh
cd .ssh
Create a new key if you do not have one.
ssh-keygen -t rsa -b 4096 -C "user@email.com"
view the content of the public key just created( in this case the key name is id_rsa)
type id_rsa.pub
cd ~
Create the .ssh
folder if it does not exists.
mkdir .ssh
cd .ssh
Create a new key if you do not have one.
ssh-keygen -t rsa -b 4096 -C "user@email.com"
view the content of the public key just created( in this case the key name is id_rsa)
cat id_rsa.pub
Add key to ssh agent
ssh-copy-id ~/.ssh/id_rsa
eval "$(ssh-agent -s)"
Then clone this repo by running on the command line:
git clone git@github.com:ntuifranklin/cmsc436grproj.git
The androidui
folder is an android app setup to run automatically without any other further installation required.
The server needs to have wamp
or xamp
server setup.
The ./sql/flush_and_reload_tables.sql contains the sql queries to create the database on server side from scratch.
The only manual thing to do is to create the user fnkokamn_dbadmin
with password AV7y8JFAnSrkyzy
.
The grant mysql query
also needs to be run to grant the new creaed user privileges to run queries on the backend.
The following parameters need to be set server side for the android app to run properly
$servername = "localhost" ;
$username = "fnkokamn_dbadmin";
$password = "AV7y8JFAnSrkyzy";
$database = "fnkokamn_terpdb";
Format : http://server.domain/backend.php?action=action_name¶m1=value1¶m_i=value_i
server.domain
is supposed to be s56.cmsc436-2301.cs.umd.edu/server
. For some reason the firewall might block access in android.
The examples below use an aws free instance running at https://s56.cmsc436-2301.cs.umd.edu/server
.
Example of backedn call actions (value that the URL_LINK in android is supposed to take) :
- List all students
https://s56.cmsc436-2301.cs.umd.edu/server/backend.php?action=users.
This should produce a screen shot that looks like the image below :.
- List one student
https://s56.cmsc436-2301.cs.umd.edu/server/backend.php?action=user&username=mfisher&password=fhsgd.
- List a Course
Need thecourseid
andcoursetitle
parameters in the url:
List CMSC131
- List all courses
List CMSC131
When you git fetch
or git pull
from the main branch, the newly added google ad code might
not work if you did not rebuild after addition of google ad api key. To fix :
- Stack Overflow Issue here.
Sometimess#.*.cs.umd.edu
might not work. InMainActivity.kt
file, in the companion object section, activate the AWS urls : http://ec2-54-196-231-193.compute-1.amazonaws.com/cmsc436grproj/ by commenting or un commenting the appropriate urls