{"id":49873537,"url":"https://github.com/ksingh1817/cred-express-with-mongodb","last_synced_at":"2026-05-15T11:23:32.745Z","repository":{"id":313467942,"uuid":"1051533832","full_name":"ksingh1817/cred-express-with-mongodb","owner":"ksingh1817","description":"first Express + MongoDB test deployment","archived":false,"fork":false,"pushed_at":"2025-09-28T18:12:43.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-17T09:35:28.023Z","etag":null,"topics":["expressjs","mongodb","mongodb-atlas","mongose","nodejs"],"latest_commit_sha":null,"homepage":"https://first-express-hu4s.onrender.com/","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/ksingh1817.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-09-06T07:32:19.000Z","updated_at":"2025-09-28T18:12:46.000Z","dependencies_parsed_at":"2025-09-06T09:24:53.903Z","dependency_job_id":"c8f70c0d-40f6-497b-979d-150befef659f","html_url":"https://github.com/ksingh1817/cred-express-with-mongodb","commit_stats":null,"previous_names":["yourskiss/first-express","yourskiss/cred-express-with-mongodb","ksingh1817/cred-express-with-mongodb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ksingh1817/cred-express-with-mongodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksingh1817%2Fcred-express-with-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksingh1817%2Fcred-express-with-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksingh1817%2Fcred-express-with-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksingh1817%2Fcred-express-with-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksingh1817","download_url":"https://codeload.github.com/ksingh1817/cred-express-with-mongodb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksingh1817%2Fcred-express-with-mongodb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33064769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["expressjs","mongodb","mongodb-atlas","mongose","nodejs"],"created_at":"2026-05-15T11:23:32.014Z","updated_at":"2026-05-15T11:23:32.740Z","avatar_url":"https://github.com/ksingh1817.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3\u003e\nThis project is built using Express.js(render.com) and MongoDB (MongoDB Atlas).  \u003cbr /\u003e\nIt follows the MVC (Model-View-Controller) pattern and supports basic CRUD operations to manage student records efficiently.\n\u003c/h3\u003e\n \n\n\u003ch2\u003eFeatures\u003c/h2\u003e\n✅ Create Student =\u003e\tAdd a new student to the database \u003cbr /\u003e\n📝 Edit Student =\u003e\tUpdate existing student details \u003cbr /\u003e\n❌ Delete Student =\u003e\tRemove a student record \u003cbr /\u003e\n👁️ View All Students =\u003e\tDisplay a list of all students \u003cbr /\u003e\n📄 View Student by ID =\u003e\tView detailed info of a student by ID  \u003cbr /\u003e\n🔍 Search Student by Name =\u003e\tFilter students using a name query \u003cbr /\u003e\n📄 Pagination =\u003e Limit recode in each page  \u003cbr /\u003e\n\n \n\n\u003ch2\u003eTech Stack\u003c/h2\u003e\nExpress.js =\u003e Node.js web framework for backend logic \u003cbr /\u003e\nMongoDB Atlas =\u003e Cloud-hosted NoSQL database \u003cbr /\u003e\nRandom.com  =\u003e Hosting the live application  \u003cbr /\u003e\nGitHub =\u003e Version control and collaboration \u003cbr /\u003e\n\n \n\u003ch2\u003eSetting Environment\u003c/h2\u003e\nGo to  =\u003e Edit the system environment variables\u003cbr /\u003e\nGo to  =\u003e Environment Variables\u003cbr /\u003e\nChoose  =\u003e Path on System Variables\u003cbr /\u003e\nAdd  =\u003e Add MongoDB URL  (C:\\Program Files\\MongoDB\\Server\\8.0\\bin)\u003cbr /\u003e\n\u003cbr /\u003e \nGo to  =\u003e Edit the system environment variables\u003cbr /\u003e\nGo to  =\u003e Environment Variables\u003cbr /\u003e\nChoose  =\u003e Path on User Variables\u003cbr /\u003e\nAdd  =\u003e Add mongosh URL  (C:\\Program Files\\mongosh)\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nInstall ==\u003e mongosh \u003cbr /\u003e\nGo to  ==\u003e CMD\u003cbr /\u003e\nHit ==\u003e mongosh\u003cbr /\u003e\n\n \n\u003ch2\u003eDatabase Commands\u003c/h2\u003e\nshow dbs  ===\u003e\u003e   Show all databases \u003cbr /\u003e\nuse dbname  ===\u003e\u003e   Switch to database \u003cbr /\u003e\ndb.dropDatabase()  ===\u003e\u003e   Delete current database \u003cbr /\u003e\n \n\n\u003ch2\u003eCollection Commands\u003c/h2\u003e\ndb.createCollection(\"collection name\")   ===\u003e\u003e   Create New Collection \u003cbr /\u003e\nshow collections  ===\u003e\u003e   Show all collections \u003cbr /\u003e\ndb.collection.drop(\"collection name\")  ===\u003e\u003e   Delete a collection \u003cbr /\u003e\ndb.collectionname.renameCollection(\"new collection name\")   ===\u003e\u003e   rename collection \u003cbr /\u003e\n \n\u003ch2\u003eCRUD Operations\u003c/h2\u003e\n\u003ch4\u003eInsert\u003c/h4\u003e\ndb.collection.insertOne({ name: \"Alice\", age: 25 }); // Insert one \u003cbr /\u003e\ndb.collection.insertMany([{ name: \"Bob\" }, { name: \"Carol\" }]); // Insert many \u003cbr /\u003e\n \n\u003ch4\u003eRead\u003c/h4\u003e\ndb.collection.find();  // All documents \u003cbr /\u003e\ndb.collection.findOne({ name: \"Alice\" });  // First match \u003cbr /\u003e\ndb.collection.find({ age: { $gt: 20 } });  // Conditional \u003cbr /\u003e\n \n\u003ch4\u003eUpdate\u003c/h4\u003e\ndb.collection.updateOne({ name: \"Alice\" },{ $set: { age: 26 } }); // Update one \u003cbr /\u003e\ndb.collection.updateMany({ age: { $lt: 30 } },{ $inc: { age: 1 } }); // Update many \u003cbr /\u003e\n \n\u003ch4\u003eDelete\u003c/h4\u003e\ndb.collection.deleteOne({ name: \"Alice\" }); // Delete one \u003cbr /\u003e\ndb.collection.deleteMany({ age: { $lt: 25 } }); // Delete many \u003cbr /\u003e\n \n\u003ch4\u003eIndexing\u003c/h4\u003e\ndb.collection.createIndex({ name: 1 });  // Ascending index \u003cbr /\u003e\ndb.collection.dropIndex(\"name_1\"); \u003cbr /\u003e\ndb.collection.getIndexes(); \u003cbr /\u003e\n\n\n\u003ch2\u003eStatus Code\u003c/h2\u003e\n\u003ch4\u003e Success\u003c/h4\u003e\n200 OK - The request was successful and the response contains the requested data.\u003cbr /\u003e \nres.status(200).json({ message: \"Success\", data });\n\u003cbr /\u003e\u003cbr /\u003e\n201 Created - A new resource has been successfully created (e.g., after POST).\u003cbr /\u003e \nres.status(201).json({ message: \"User created\", user });\n\u003cbr /\u003e\u003cbr /\u003e\n204 No Content - The request was successful but there's no content to return.\u003cbr /\u003e \nres.status(204).send();\n\n\u003cbr /\u003e\u003cbr /\u003e\n\n\u003ch4\u003e Redirection \u003c/h4\u003e \n301 Moved Permanently -  A resource has been permanently moved to a new URL.\u003cbr /\u003e \nres.redirect(301, \"https://newdomain.com\");\n\u003cbr /\u003e\u003cbr /\u003e\n302 Found - Temporary redirect.\u003cbr /\u003e \nres.redirect(302, \"/login\");\n\n\u003cbr /\u003e\u003cbr /\u003e\n\n \n\u003ch4\u003e Client Errors\u003c/h4\u003e\n400 Bad Request - The client sent invalid data (e.g., missing fields, malformed JSON).\u003cbr /\u003e \nres.status(400).json({ error: \"Invalid input\" });\n\u003cbr /\u003e\u003cbr /\u003e\n401 Unauthorized - Authentication is required but missing or invalid.\u003cbr /\u003e \nres.status(401).json({ error: \"Authentication required\" });\n\u003cbr /\u003e\u003cbr /\u003e\n403 Forbidden - Authenticated user lacks permission.\u003cbr /\u003e \nres.status(403).json({ error: \"Access denied\" });\n\u003cbr /\u003e\u003cbr /\u003e\n404 Not Found - Requested resource doesn't exist.\u003cbr /\u003e \nres.status(404).json({ error: \"Resource not found\" });\n\u003cbr /\u003e\u003cbr /\u003e\n409 Conflict - Conflict in request (e.g., duplicate entry).\u003cbr /\u003e \nres.status(409).json({ error: \"User already exists\" });\n\u003cbr /\u003e\u003cbr /\u003e\n422 Unprocessable Entity - Validation errors in input data.\u003cbr /\u003e \nres.status(422).json({ error: \"Validation failed\", details });\n\n\u003cbr /\u003e\u003cbr /\u003e \n\n\u003ch4\u003e Server Errors\u003c/h4\u003e\n500 Internal Server Error - Unexpected server error.\u003cbr /\u003e \nres.status(500).json({ error: \"Something went wrong\" });\n\u003cbr /\u003e\u003cbr /\u003e\n502 Bad Gateway / 503 Service Unavailable - Issues with upstream services or server overload.\u003cbr /\u003e \nres.status(503).json({ error: \"Service temporarily unavailable\" });\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksingh1817%2Fcred-express-with-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksingh1817%2Fcred-express-with-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksingh1817%2Fcred-express-with-mongodb/lists"}