instruction
install node
npm install -y
run a mysql server
host: 'localhost',
user: 'root',
password: '',
database: 'hexamdb'
CREATE TABLE teachers
(
email
varchar(255) NOT NULL,
pass
varchar(255) NOT NULL
)
CREATE TABLE tests
(
title
varchar(255) NOT NULL,
description
text NOT NULL,
duration
int(11) NOT NULL,
start
varchar(255) NOT NULL,
end
varchar(255) NOT NULL,
date
varchar(255) NOT NULL,
id
varchar(255) NOT NULL
)
CREATE TABLE reports
(
tab_switches
int(11) NOT NULL,
face_suspicion
int(11) NOT NULL,
eye_suspicion
int(11) NOT NULL,
student_email
varchar(255) NOT NULL,
test_id
varchar(255) NOT NULL
)
CREATE TABLE students
(
email
varchar(255) NOT NULL,
name
varchar(255) NOT NULL,
imgpath
varchar(255) NOT NULL
)
go to http://localhost:3000/