Important
Make sure you have conda installed on your machine
-
Clone this project to your local environment
git clone "https//github.com/Humen-debug/facial-auth-CMS.git" -
Create a virtual environment for required packages
conda create -n face python=3 conda activate face
-
Installed required packages
pip install -r src/FaceRecognition/requirements.txt
-
Initialize tables on SQL
source <path to FaceRecognition/facerecognition.sql>
-
Configure variables in compiler environment
export EMAIL_USER=[your email address] export EMAIL_PASSWORD=[your email password] export FLASK_APP=src.FaceRecognition.apis.py
If you are blocked by the browser because of "low-security". please follow the instructions on https://github.com/twtrubiks/Flask-Mail-example
-
Start server
flask run
-
(Optional) Generate data in SQL
source <path to demo-data/course-generator.sql>
-
(Optional) Maximize number of packets in SQL
set global max_allowed_packet=67108864
-
Installed required packages
npm install
-
Start the app in the development mode. By default, the website will be listening on http://localhost:3000
npm start
Tip
UPDATE (18/11/2022): USE CHROME for execution. Please download Allow CORS in https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf?hl=en
- Click "Sign up" Link at the bottom on Login Page
- Fill in the Register Form and click "Continue" button; At this point, our database will save your information and assume you enrolled all courses in our DB
- Click "Facial Register" for next "Facial Login" or "Skip" for email login
- Return to Login Page and choose your login method
- After login, there are one side drawer containing the routers to Profile Page, Home Page, Courses Page and Timetable Page
- On Home Page, you can do the following
- check your login time and staying duration on the top
- check class that will start within an hour
- check your this week timetable
- both timetable and upcoming class component allows you to
- send a copy of course information to your registered email; (an alert will pop up no matter success or fail)
- download all attached materials by clicking the block or "Download All" button;
- open zoom link by clicking if there is any attached zoom link;
- click the Course Name to enter Course Detail Page
- On Courses Page, you can do the following
- click course card or course list tile to enter Course Detail Page
- search, sort and filter your enrolled courses below with the toolbar
- On Course Detail Page, you can do the following
- read course details, which includes general information, messages, and course materials
- search and sort the teacher's messages and course materials respectively on tab panel
- open zoom link or download materials by clicking the link
- On Profile Page, you can edit your personal information (an alert will pop up no matter success or fail after clicking "Save")