nyitgtm / AttendMate

Attendance monitor made simple.
https://attendmate.netlify.app/
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Create Teacher Dashboard #7

Closed navraj213 closed 1 week ago

navraj213 commented 3 weeks ago

@Armaan294 @bthoma31

similar to issue #6

Communicate with team A to help create a similar page. This page will serve to show the teachers his classes be able to manage it

Deadline: Sunday Night

You have to connect it to the database, create a new schema, create the front end, and handle all the backend requests.

navraj213 commented 3 weeks ago

work in branch: teamB and the area to work is: src/app/student/dashboard/page.tsx

navraj213 commented 3 weeks ago

Created schema for teacher.

teacherId: "T67890",
teacherName: "Jane Smith",
teacherEmail: "jane.smith@example.com",
password: "hashed_password",
classes: [
  {
    classId: "C101",
    className: "Math 101"
  }
]

______________________ (on mongodb)
{"_id":{"$oid":"67305fde93d8508ac4db53d9"},"teacherId":"T67890","teacherName":"Jane Smith","teacherEmail":"jane.smith@example.com","password":"hashed_password","classes":[{"classId":"C101","className":"Math 101"}]}

image

image

visual

Screenshot 2024-11-10 at 1 29 06 AM

navraj213 commented 3 weeks ago

Overview

Created framework in 0691f531a3a6d7fa0f1dc15c32a852cff9159ecd (find code changed within commit)

Insight

Did whole backend, and partially supported front end. (Main thing was getting it to login and display the account details.

example login is: jane.smith@example.com hashed_password

image

image

Next Steps (in terms of priority)

Deadline extended to Sunday

navraj213 commented 2 weeks ago

Overview

Added Backend Support 5c9ebdf1930af1b38643cbafe44dc69751213814 2100831945bbafc657408e3939789339fce25eee

Images

image

image

image

image

image

Next Steps

Code we must change https://github.com/nyitgtm/AttendMate/blob/5c9ebdf1930af1b38643cbafe44dc69751213814/src/app/teacher/dashboard/page.tsx#L405C13-L425C19