{"id":29190713,"url":"https://github.com/yukti-says/student-management-api","last_synced_at":"2026-05-02T18:40:34.403Z","repository":{"id":302038068,"uuid":"1011031138","full_name":"yukti-says/student-management-api","owner":"yukti-says","description":"Role-based Student Management REST API using Node.js, Express, MongoDB, JWT. Built with MVC structure, teacher \u0026 student features included.","archived":false,"fork":false,"pushed_at":"2025-06-30T08:26:27.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T08:44:15.676Z","etag":null,"topics":["backend","expressjs","jwt-authentication","mongodb","mongodb-atlas","mvc","nodejs","restapi"],"latest_commit_sha":null,"homepage":"","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/yukti-says.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}},"created_at":"2025-06-30T07:45:45.000Z","updated_at":"2025-06-30T08:26:30.000Z","dependencies_parsed_at":"2025-06-30T08:54:30.718Z","dependency_job_id":null,"html_url":"https://github.com/yukti-says/student-management-api","commit_stats":null,"previous_names":["yukti-says/student-management-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yukti-says/student-management-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukti-says%2Fstudent-management-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukti-says%2Fstudent-management-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukti-says%2Fstudent-management-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukti-says%2Fstudent-management-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yukti-says","download_url":"https://codeload.github.com/yukti-says/student-management-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukti-says%2Fstudent-management-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263052430,"owners_count":23406106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["backend","expressjs","jwt-authentication","mongodb","mongodb-atlas","mvc","nodejs","restapi"],"created_at":"2025-07-02T00:11:01.029Z","updated_at":"2026-05-02T18:40:34.375Z","avatar_url":"https://github.com/yukti-says.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📚 Student Management System API\n\nA role-based RESTful API built with Node.js, Express, and MongoDB for managing students, teachers, reports, and assignments — using MVC architecture and JWT authentication.\n\n---\n\n## 🚀 Features\n\n- ✅ **User Roles:** Teacher and Student\n- ✅ **JWT Authentication**\n- ✅ **Secure Routing with Role-based Access**\n- ✅ **Teachers can:**\n  - Add, Update, Delete, Get student by ID\n- ✅ **Students can:**\n  - View their Assignments by student ID\n- ✅ **Clean Folder Structure using MVC**\n- ✅ Built with: `Node.js`, `Express`, `MongoDB`, `Mongoose`\n\n---\n\n## Live Deployed \n  [https://student-management-api-w0gc.onrender.com](https://student-management-api-w0gc.onrender.com)\n\n---\n\n## PostMan Tests\n\n## 📸 Screenshots\n\n User Registration:\n \n ![Auth](assets/screenshots/register.png) |\n\n User Login:\n ![Teacher](assets/screenshots/login.png) |\n\n---\n\n## 🧱 Tech Stack\n\n| Layer     | Technology       |\n|-----------|------------------|\n| Runtime   | Node.js          |\n| Framework | Express.js       |\n| Database  | MongoDB (Mongoose) |\n| Auth      | JWT + bcryptjs   |\n| Structure | MVC + Service Layer |\n\n---\n\n## 📂 Folder Structure\n\n/backend\n├── /models\n├── /controllers\n├── /routes\n├── /services\n├── /middlewares\n├── /config\n├── server.js\n└── .env\n\n\n\n---\n\n## 🔐 Roles\n\n| Role    | Access                                          |\n|---------|-------------------------------------------------|\n| Teacher | Can add, delete, update, and search students    |\n| Student | Can view their assignments by ID                |\n\n---\n\n## 🧪 API Endpoints\n\n### 🔐 Auth\n\n- `POST /api/auth/register` – Register with role (teacher/student)\n- `POST /api/auth/login` – Login and receive JWT\n\n### 👨‍🏫 Teacher (Requires JWT + Role: teacher)\n\n- `POST /api/teacher/add`\n- `PUT /api/teacher/update/:id`\n- `DELETE /api/teacher/delete/:id`\n- `GET /api/teacher/student/:id`\n- `GET /api/teacher/students` *(future enhancement)*\n\n### 👩‍🎓 Student (Requires JWT + Role: student)\n\n- `GET /api/student/assignments/:id`\n\n---\n\n## 🛠️ Setup \u0026 Run Locally\n\n```bash\ngit clone https://github.com/yukti-says/student-management-api\ncd student-management-api\nnpm install\n```\n### 🔧 Configure .env\n\n```ini\n\n\nPORT = 5000\nMONGO_URI = \"mongodb+srv://yuktiji:yuktiji@cluster0.a9q6ybi.mongodb.net/?retryWrites=true\u0026w=majority\u0026appName=Cluster0\"\nJWT_SECRET = \"yukti's good\"\n```\n\n### ✅ Run Project\n\n\n```nodemon server.js```\n\n## 🧠 Learnings\n\nMVC structure and clean code practices\n\nJWT authentication + role-based middleware\n\nReal-world API structure using Node.js \u0026 MongoDB\n\nHow to handle routes securely with middlewares\n\n## 💡 Future Enhancements\n\nReport model + view\n\nAssignment submissions\n\nPDF generation\n\nMongoDB Atlas hosting\n\nAdmin panel UI\n\n## 🤝 Connect with Me\n\nYukti Sahu\n\n\u003cp align=\"center\"\u003e\n\n  \u003ca href=\"https://www.linkedin.com/in/yukti-sahu2004/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/LinkedIn-blue?logo=linkedin\u0026logoColor=white\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/yukti-says\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/GitHub-000?logo=github\u0026logoColor=white\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://x.com/YuktiSahu234\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Twitter-1DA1F2?logo=twitter\u0026logoColor=white\" alt=\"Twitter\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukti-says%2Fstudent-management-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyukti-says%2Fstudent-management-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukti-says%2Fstudent-management-api/lists"}