{"id":22468157,"url":"https://github.com/yasemincidem/node-todo-app","last_synced_at":"2026-04-04T21:33:57.119Z","repository":{"id":77461411,"uuid":"290243055","full_name":"yasemincidem/node-todo-app","owner":"yasemincidem","description":"This project aims to manage the CRUD operations using Nodejs, Express, Mongoose and React.","archived":false,"fork":false,"pushed_at":"2020-09-04T12:57:36.000Z","size":6814,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T14:33:11.393Z","etag":null,"topics":["babel","eslint","expressjs","mongoose","nodejs","prettier","react","webpack"],"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/yasemincidem.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}},"created_at":"2020-08-25T14:50:46.000Z","updated_at":"2023-08-18T13:25:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"2afa282f-c407-443f-8316-fb5e57cf254b","html_url":"https://github.com/yasemincidem/node-todo-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yasemincidem/node-todo-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasemincidem%2Fnode-todo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasemincidem%2Fnode-todo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasemincidem%2Fnode-todo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasemincidem%2Fnode-todo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yasemincidem","download_url":"https://codeload.github.com/yasemincidem/node-todo-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasemincidem%2Fnode-todo-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31415111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":["babel","eslint","expressjs","mongoose","nodejs","prettier","react","webpack"],"created_at":"2024-12-06T11:15:23.644Z","updated_at":"2026-04-04T21:33:57.086Z","avatar_url":"https://github.com/yasemincidem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-todo-app\nThis app provides the crud operations using Nodejs, Express, Mongodb and Mogoose and also provides the ui page to make them happpen the crud operations using React and Webpack. \n\n## Installation:\nAfter you cloned the application. You need to follow in the following steps.\n\n##### Db Part:\n1. Create a cluster through Mongodb atlas (You should follow this documentation https://docs.atlas.mongodb.com/tutorial/create-new-cluster/\n\n2. Connect to cluster to get the connection url (You should follow this documentation https://docs.atlas.mongodb.com/connect-to-cluster/\n\n3. After getting Connection Url. You should change `config/index.js`and `config/config.json` files with yours configuration.\n\nNote: If you want to interact with cluster data, you should follow these instructions https://docs.atlas.mongodb.com/data-explorer/databases-collections/\n\n##### Nodejs part:\n1. npm install (yarn install)\n\n2. npm start(yarn start) =\u003e this command runs both api and ui codes at the same time.\n\n## Example crud operations:\n``` \n  // To get whole todos from db\n  app.get('/api/todos', function (req, res) {\n    Todo.find({}, function (err, results) {\n      if (err) throw err;\n      res.send(results);\n    });\n  });\n\n  // to get the usernames through the todo model\n  app.get('/api/todos/:uname', function (req, res) {\n    Todo.find({ userName: req.params.uname }, function (err, results) {\n      if (err) throw err;\n      res.send(results);\n    });\n  });\n  \n  // to get the ids through the todo model\n  app.get('/api/todo/:id', function (req, res) {\n    Todo.findById({ _id: req.params.id }, function (err, results) {\n      if (err) throw err;\n      res.send(results);\n    });\n  });\n  \n  // to post the new entry into todo model or update the existing one\n  app.post('/api/todo', function (req, res) {\n    if (req.body.id) {\n      Todo.findByIdAndUpdate(\n        req.body.id,\n        {\n          userName: req.body.userName,\n          todo: req.body.todo,\n          isDone: req.body.isDone,\n          hasAttachment: req.body.hasAttachment,\n        },\n        { new: true },\n        function (err, results) {\n          if (err) throw err;\n          res.send(results);\n        },\n      );\n    } else {\n      Todo.create(\n        {\n          userName: req.body.userName,\n          todo: req.body.todo,\n          isDone: req.body.isDone,\n          hasAttachment: req.body.hasAttachment,\n        },\n        function (err, results) {\n          res.send(results);\n        },\n      );\n    }\n  });\n  \n  // to delete the given todo\n  app.delete('/api/todo/:id', function (req, res) {\n    Todo.findOneAndDelete({ _id: req.params.id }, function (err, results) {\n      if (err) throw err;\n      console.log('results', results);\n      res.send(results);\n    });\n  });\n  ```\n## Demo:\n![example](./demo.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasemincidem%2Fnode-todo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasemincidem%2Fnode-todo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasemincidem%2Fnode-todo-app/lists"}