{"id":23346676,"url":"https://github.com/krguptaa/rest-crud-nodejs","last_synced_at":"2026-04-10T01:04:22.158Z","repository":{"id":58411396,"uuid":"144705520","full_name":"krguptaa/rest-crud-nodejs","owner":"krguptaa","description":"RESTFul CRUD Example with Node.js and Mysql (Express framework)","archived":false,"fork":false,"pushed_at":"2018-08-14T10:46:33.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T19:40:42.145Z","etag":null,"topics":["expressjs","nodejs","nodejs-mysql","rest-api","restful-api"],"latest_commit_sha":null,"homepage":null,"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/krguptaa.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}},"created_at":"2018-08-14T10:31:10.000Z","updated_at":"2018-08-14T10:48:00.000Z","dependencies_parsed_at":"2022-09-23T18:00:27.629Z","dependency_job_id":null,"html_url":"https://github.com/krguptaa/rest-crud-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krguptaa%2Frest-crud-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krguptaa%2Frest-crud-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krguptaa%2Frest-crud-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krguptaa%2Frest-crud-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krguptaa","download_url":"https://codeload.github.com/krguptaa/rest-crud-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694879,"owners_count":20980733,"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":["expressjs","nodejs","nodejs-mysql","rest-api","restful-api"],"created_at":"2024-12-21T07:14:34.725Z","updated_at":"2025-12-30T23:05:45.116Z","avatar_url":"https://github.com/krguptaa.png","language":"JavaScript","readme":"This is a very basic example of rest api in Node.js \n\n## Installation\n\n*for newbies : Clone or download zip to your machine then hit this :\n\n`npm install`\n\n## Steps for generating the package for node Js\n\n1. Create the Folder \n`mkdir foldername`\n2. initialize the package using npm\n`npm init` \n3. Provide the details like 'package name, version and description etc'\n4. package.json will created in folder\n\n## Install the express framework, mysql and body-parser\n\n`npm install express mysql body-parser --save`\n\n## Create the server.js file\n\n## Start the node for running\n\n`node server.js`\n\n\n## Configuration (database)\n\n`````\nhost: 'localhost',\nuser: 'root',\npassword : 'root',\nport : 3306, //port mysql\ndatabase:'node'\t\n\n`````\n\n## Below is the base url for rest api\n`http://localhost:8080/`\n\nYou might need to pay attention on this , as we're using REST \n\n``````\nRoute\t\t\tHTTP Verb\tDescription\n/todos\t\t\tGET\t\t\tGet\tAll tasks\n/todo\t\t\tPOST\t\tAdd new task\n/todo/:id\t\tGET\t\t\tGet a task (for editing)\n/todo/:id\t\tPUT\t\t\tUpdate a task\n/todo/:id\t\tDELETE\t\tDelete a task","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrguptaa%2Frest-crud-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrguptaa%2Frest-crud-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrguptaa%2Frest-crud-nodejs/lists"}