-
Admin Login
- URL:
https://localhost:800/api/admin/login
(POST request) - Use email:
admin@admin
and password:admin
- Pass these credentials into headers (in Postman or similar tool) to authenticate.
- URL:
-
Add Students
- URL:
https://localhost:800/api/admin/add-student
(POST request) - Admin credentials required: email:
admin@admin
, password:admin
- Pass student's name, department, email, and password in the request body to create a new user.
- URL:
-
Assign Tasks to Students
- URL:
https://localhost:800/api/admin/assign-task
(POST request) - Admin credentials required: email:
admin@admin
, password:admin
- Pass student ID, task description, and duration in the request body to assign a task to a student.
- URL:
-
View Assigned Tasks and Status
- URL:
http://localhost:8080/api/student
(GET request) - Use the student's email and password in the header to access tasks assigned to them.
- URL:
-
Update Task Status
- URL:
http://localhost:8080/api/studentUpdate
(PUT request) - Use student email and password in the header and pass task ID and the updated task status in the request body to update the task in the database.
- URL:
- Clone the Repository
- Navigate to Project Directory
- Install Dependencies
- Run
npm i
- Run
- Create
.env
File- Use the provided data or configuration and create a
.env
file.
- Use the provided data or configuration and create a
- Start the Project
- Run
npm start
- Run