{"id":22083744,"url":"https://github.com/tomdieu/nodejs-and-express-crud","last_synced_at":"2026-05-09T04:34:15.423Z","repository":{"id":157575529,"uuid":"558982440","full_name":"Tomdieu/nodejs-and-express-crud","owner":"Tomdieu","description":"Nodejs and express CRUD operation using sequelize ORM","archived":false,"fork":false,"pushed_at":"2022-10-29T22:11:43.000Z","size":53,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T21:31:51.324Z","etag":null,"topics":["crud-api","express","nodejs","sequelize-orm","sequelizejs","sqlite3"],"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/Tomdieu.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":"2022-10-28T18:39:26.000Z","updated_at":"2022-11-01T20:00:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad77dce6-fadd-4e07-8d29-30ee0e8df36c","html_url":"https://github.com/Tomdieu/nodejs-and-express-crud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tomdieu/nodejs-and-express-crud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomdieu%2Fnodejs-and-express-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomdieu%2Fnodejs-and-express-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomdieu%2Fnodejs-and-express-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomdieu%2Fnodejs-and-express-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tomdieu","download_url":"https://codeload.github.com/Tomdieu/nodejs-and-express-crud/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomdieu%2Fnodejs-and-express-crud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32807271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["crud-api","express","nodejs","sequelize-orm","sequelizejs","sqlite3"],"created_at":"2024-12-01T00:17:34.210Z","updated_at":"2026-05-09T04:34:15.386Z","avatar_url":"https://github.com/Tomdieu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodejs-and-express-crud\n\n## How to execute\n\ninstall dependencies\n\nnavigate to the folder\n\n```\ncd nodejs-and-express-crud/\n```\n\ninstall the dependecies with\n```\nnpm install --save\n```\n\n## run with\n\n```\nnpm start\n```\n\n## Routes\n- GET `http://localhost:5000/users` to view all the users\n\n`http://localhost:5000/users`\n\n## Response\n\n```json\n{\n    \"users\": [\n        {\n            \"id\": 1,\n            \"name\": \"ivantom\",\n            \"age\": 10,\n            \"createdAt\": \"2022-10-29T21:43:37.588Z\",\n            \"updatedAt\": \"2022-10-29T21:43:37.588Z\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"test_user\",\n            \"age\": 14,\n            \"createdAt\": \"2022-10-29T21:45:56.111Z\",\n            \"updatedAt\": \"2022-10-29T21:56:16.320Z\"\n        }\n    ]\n}\n```\n\n- GET `http://localhost:5000/users/:id` to view a user\n\n## Example \n`http://localhost:5000/users/1`\n\n## Response\n\n```json\n{\n    \"id\": 1,\n    \"name\": \"ivantom\",\n    \"age\": 10,\n    \"createdAt\": \"2022-10-29T21:43:37.588Z\",\n    \"updatedAt\": \"2022-10-29T21:43:37.588Z\"\n}\n```\n\n- POST `http://localhost:5000/users` to add a user\n\n`http://localhost:5000/users`\n## input\n\n```json\n{\n    \"name\":\"tom\",\n    \"age\":19\n}\n```\n\n## Response\n\n```json\n{\n    \"user\": {\n        \"name\": \"tom\",\n        \"age\": 19\n    },\n    \"message\": \"user created successfully!\"\n}\n```\n\n- DELETE `http://localhost:5000/users/:id` to delete a user\n\n## Example\n\n`http://localhost:5000/users/5`\n\n## Response\n\n```json\n{\n    \"msg\": \"User with id 5 deleted!\"\n}\n```\n\n- PATCH `http://localhost:5000/users/:id` to update a user\n\n## Example \n\n`http://localhost:5000/users/3`\n\n## Form data\n\n```json\n{\n\n    \"name\":\"test_user\",\n    \"age\":19\n}\n```\n\n## Response\n\n```json\n{\n    \"msg\": \"User with the id 3 has been updated!\",\n    \"user\": {\n        \"id\": 3,\n        \"name\": \"test_user\",\n        \"age\": 19,\n        \"createdAt\": \"2022-10-29T21:45:56.111Z\",\n        \"updatedAt\": \"2022-10-29T21:56:16.320Z\"\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomdieu%2Fnodejs-and-express-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomdieu%2Fnodejs-and-express-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomdieu%2Fnodejs-and-express-crud/lists"}