Lumeno is a platform designed to manage and streamline various educational resources, including sessions, notes, reviews, and materials. This repository provides the backend API built using Node.js and MongoDB, offering CRUD operations for all entities on the platform.
Frontend Repository of Lumeno can be accessed here.
- Node.js: JavaScript runtime for server-side scripting.
- Express.js: Web framework for building RESTful APIs.
- MongoDB: NoSQL database for storing session, user, note, and review data.
- Dotenv: Environment variable management.
- CORS: Cross-Origin Resource Sharing for enabling access across different domains.
- ObjectId: MongoDB's unique identifier for documents.
- DB_USER: Your MongoDB username.
- DB_PASS: Your MongoDB password.
- GET
/materials
: Retrieve materials based on optional filters (tutorEmail
,search
,id
). - POST
/materials
: Add a new material. - PATCH
/materials/:id
: Update a material by itsid
. - DELETE
/materials/:id
: Delete a material by itsid
.
- GET
/reviews/:id
: Retrieve reviews for a session by itsid
. - POST
/reviews
: Add a new review.
- GET
/notes
: Retrieve notes based onstudentEmail
andsearch
. - POST
/notes
: Add a new note. - DELETE
/notes/:id
: Delete a note by itsid
. - PATCH
/notes/:id
: Update a note by itsid
.
- GET
/users
: Retrieve all users. - GET
/tutors
: Retrieve all tutors. - POST
/users
: Add a new user. - DELETE
/users/:id
: Delete a user by itsid
. - GET
/users/role/:email
: Retrieve the role of a user by their email.
- GET
/sessions
: Retrieve sessions based on optional filters (tutorEmail
,search
). - GET
/sessions/:id
: Retrieve a specific session by itsid
. - POST
/sessions
: Add a new session. - DELETE
/sessions/:id
: Delete a session by itsid
. - PATCH
/sessions/status/:id
: Update the status of a session. - PATCH
/sessions/:id
: Update a session by itsid
.
- GET
/booked-sessions
: Retrieve booked sessions based on optional filters (studentEmail
,search
). - POST
/booked-sessions
: Add a new booked session.
- Clone this repository:
git clone https://github.com/yourusername/lumeno-backend.git