{"id":24468657,"url":"https://github.com/aka-azad/study-buddies-server","last_synced_at":"2026-04-10T12:32:20.587Z","repository":{"id":271522470,"uuid":"912282758","full_name":"aka-azad/study-buddies-server","owner":"aka-azad","description":"This is the server side of Study Buddies web platform. ","archived":false,"fork":false,"pushed_at":"2025-01-08T08:44:56.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T09:32:09.740Z","etag":null,"topics":["cookie-parser","cors","expressjs","firebase-auth","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"https://study-buddies-by-ashraf.web.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aka-azad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-05T05:48:22.000Z","updated_at":"2025-01-08T08:47:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"50da443f-564f-4845-b159-f3d048249506","html_url":"https://github.com/aka-azad/study-buddies-server","commit_stats":null,"previous_names":["aka-azad/study-buddies-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aka-azad/study-buddies-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aka-azad%2Fstudy-buddies-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aka-azad%2Fstudy-buddies-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aka-azad%2Fstudy-buddies-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aka-azad%2Fstudy-buddies-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aka-azad","download_url":"https://codeload.github.com/aka-azad/study-buddies-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aka-azad%2Fstudy-buddies-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31642796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cookie-parser","cors","expressjs","firebase-auth","mongodb","nodejs"],"created_at":"2025-01-21T07:12:46.762Z","updated_at":"2026-04-10T12:32:20.581Z","avatar_url":"https://github.com/aka-azad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Study Buddies Server\n\n**Purpose**:\nThis server is designed to support the Study Buddies web application, which facilitates online group study with friends. The server handles user authentication, assignment management, and submission tracking.\n\n**Live URL**:\n[Study Buddies Server](https://study-buddies-by-ashraf.web.app)\n\n## Key Features\n\n- **User Authentication**: Utilizes JWT for secure user login and logout.\n- **Assignment Management**: Supports creating, reading, updating, and deleting assignments.\n- **Submission Tracking**: Allows users to submit assignments, view submission status, and manage submissions.\n- **Protected Routes**: Uses middleware to verify tokens and protect certain routes.\n- **Environment Variables**: Uses dotenv for managing environment-specific settings.\n\n## Dependencies\n\nThe server uses the following npm packages:\n\n- **express**\n- **cors**\n- **cookie-parser**\n- **jsonwebtoken**\n- **dotenv**\n- **mongodb**\n\n## API Endpoints\n\n### Root Endpoint\n\n- **GET /**: Check if the server is running.\n\n### Authentication Endpoints\n\n- **POST /login**: Logs in the user and provides a JWT token.\n- **POST /logout**: Logs out the user and clears the JWT token.\n\n### User Data Endpoints\n\n- **POST /users**: Adds a new user to the database.\n\n### Assignment Endpoints\n\n- **POST /assignments**: Creates a new assignment.\n- **GET /assignments**: Retrieves all assignments with optional search and filter.\n- **GET /assignments/:id**: Retrieves a single assignment by ID.\n- **PUT /assignments/:id**: Updates an assignment by ID.\n- **DELETE /assignments/:id**: Deletes an assignment by ID.\n\n### Submission Endpoints\n\n- **POST /submissions**: Submits a new assignment.\n- **GET /submissions/pending**: Retrieves all pending submissions.\n- **GET /submissions**: Retrieves submissions by user email.\n- **PATCH /submissions/:id**: Updates a submission by ID.\n\n## Middleware\n\n- **verifyToken**: Middleware to verify JWT tokens and protect routes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faka-azad%2Fstudy-buddies-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faka-azad%2Fstudy-buddies-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faka-azad%2Fstudy-buddies-server/lists"}