To get the Node server running locally:
- Install Dependencies
- Clone this repo
npm install
to install all required packages.- Install MongoDB Community Edition instructions or type
mongod
to start the MongoDB process. npm run prog
runs the app in the development mode. Listens on http://localhost:5000. Server can be restarted by pressing 'rs' in command line.
- NODE_ENV- Determines the nature of the build.
- PORT- Determines which port it running on.
- MONGO_URI- Determines mongo url used.
- JWT_SECRET- Determines JSON Object used to verify JWT of client.
- EMAIL- Determines email of the adminstrator.
- PASSWORD- Determines password of the adminstrator.
- CLIENT_ID- Determines public identifier used for OAuth verification in third-party apps.
- CLIENT_SECRET- Determines the secret key used for authorization.
- ACCESS_TOKEN - Determines the token that grants access to the Google API.
- REQUEST_TOKEN - Determines the token used for connecting OAuth to the thrid-party app.
- OTP_KEY - Determines secret key used to verrify authenticity of Client.
Serves the fontend and sends a working html file.
Registers an admin with all his details.
Authenticates an admin,and logs him in.
Gets the admin by his profile.
Admin requests an OTP to his mail.
Admin enters his OTP and resets his password.
An admin registers a teacher with her details.
A teacher logs in with the provided login details .
Retrieves profile of that particular teacher by her ID.
An admin deletes a teacher by her ID.
Retrieves all teachers.
Admin adds a new class.
Gets a class with details by id.
Admin updates class details.
Admin deletes a class by class id.
Gets all classes.
An admin registers student with his details.
Gets all students.
Gets a particular student by his id.
Gets all students in a class by class ID.
Enters attendance of a student.
Updates attendance of a student
Gets all the attendance of students in a particular class.
Limits the fetched attendance of students to 20 records.